| 123456789101112131415161718192021222324252627282930313233343536 |
- {
- "name": "wechat-get-contact-list",
- "displayName": "获取微信通讯录列表",
- "description": "获取好友、群聊、公众号的wxid列表。",
- "category": "wechat",
- "version": "1.0.0",
- "endpoint": {
- "method": "POST",
- "url": "{{wechatApiBase}}/contacts/list",
- "headers": { "Content-Type": "application/json" }
- },
- "parameters": { "type": "object", "required": [], "properties": {} },
- "requestTransform": { "template": {} },
- "response": {
- "type": "object",
- "properties": {
- "ret": { "type": "integer" },
- "data": {
- "type": "object",
- "properties": {
- "friends": { "type": "array", "description": "好友wxid数组" },
- "chatrooms": { "type": "array", "description": "群聊ID数组" },
- "ghs": { "type": "array", "description": "公众号ID数组" }
- }
- }
- }
- },
- "tokenConfig": {
- "type": "config",
- "configFile": "~/.openclaw/wechat-credentials.json",
- "tokenField": "wechatApiBase",
- "currentToken": "http://8.138.37.248/api/wechat-agent",
- "resolutionOrder": ["configFile", "currentToken"]
- },
- "timeout": 15000
- }
|