| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- {
- "name": "wechat-get-contact-detail",
- "displayName": "获取联系人详细信息",
- "description": "根据wxid批量获取联系人详细信息,含昵称、头像、签名、地区等。",
- "category": "wechat",
- "version": "1.0.0",
- "endpoint": {
- "method": "POST",
- "url": "{{wechatApiBase}}/contacts/detail",
- "headers": { "Content-Type": "application/json" }
- },
- "parameters": {
- "type": "object",
- "required": ["wxids"],
- "properties": {
- "wxids": {
- "type": "array",
- "items": { "type": "string" },
- "description": "wxid数组,支持批量查询"
- }
- }
- },
- "requestTransform": {
- "template": { "wxids": "{{wxids}}" }
- },
- "response": {
- "type": "object",
- "properties": {
- "ret": { "type": "integer" },
- "data": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "userName": { "type": "string", "description": "wxid" },
- "nickName": { "type": "string", "description": "昵称" },
- "sex": { "type": "integer", "description": "1=男 2=女" },
- "signature": { "type": "string" },
- "province": { "type": "string" },
- "city": { "type": "string" },
- "bigHeadImgUrl": { "type": "string", "description": "头像URL" },
- "alias": { "type": "string", "description": "微信号" }
- }
- }
- }
- }
- },
- "tokenConfig": {
- "type": "config",
- "configFile": "~/.openclaw/wechat-credentials.json",
- "tokenField": "wechatApiBase",
- "currentToken": "http://8.138.37.248/api/wechat-agent",
- "resolutionOrder": ["configFile", "currentToken"]
- },
- "timeout": 15000
- }
|