api-config.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "name": "wechat-get-contact-list",
  3. "displayName": "获取微信通讯录列表",
  4. "description": "获取好友、群聊、公众号的wxid列表。",
  5. "category": "wechat",
  6. "version": "1.0.0",
  7. "endpoint": {
  8. "method": "POST",
  9. "url": "{{wechatApiBase}}/contacts/list",
  10. "headers": { "Content-Type": "application/json" }
  11. },
  12. "parameters": { "type": "object", "required": [], "properties": {} },
  13. "requestTransform": { "template": {} },
  14. "response": {
  15. "type": "object",
  16. "properties": {
  17. "ret": { "type": "integer" },
  18. "data": {
  19. "type": "object",
  20. "properties": {
  21. "friends": { "type": "array", "description": "好友wxid数组" },
  22. "chatrooms": { "type": "array", "description": "群聊ID数组" },
  23. "ghs": { "type": "array", "description": "公众号ID数组" }
  24. }
  25. }
  26. }
  27. },
  28. "tokenConfig": {
  29. "type": "config",
  30. "configFile": "~/.openclaw/wechat-credentials.json",
  31. "tokenField": "wechatApiBase",
  32. "currentToken": "http://8.138.37.248/api/wechat-agent",
  33. "resolutionOrder": ["configFile", "currentToken"]
  34. },
  35. "timeout": 15000
  36. }