name: wechat_operate
description: 通过微信进行社交管理与消息发送。流程:查询目标(好友/群聊/成员) -> 确认目标 -> 发送内容(文本/图片/文件)。
endpoint: http://192.168.29.1:8080
env:
WECHAT_APPID: wx_KcD1dMEn7KidBemwN2lVh
GET /aiTest/queryFriend
appid: {{env.WECHAT_APPID}} (当前微信的appid)
name: 好友的名称
GET /aiTest/queryRecentContact
appid: {{env.WECHAT_APPID}}
GET /aiTest/queryChatroom
appid: {{env.WECHAT_APPID}}
GET /aiTest/queryChatroomMembers
appid: {{env.WECHAT_APPID}}
chatroomId: 群id
POST /aiTest/sendText
appid: {{env.WECHAT_APPID}}
contact: 目标好友或群聊的 wxId
content: 发送消息内容
POST /aiTest/sendImg
appid: {{env.WECHAT_APPID}}
contact: 目标好友或群聊的 wxId
content: 图片的连接信息
POST /aiTest/sendFile
appid: {{env.WECHAT_APPID}}
contact: 目标好友或群聊的 wxId
fileUrl: 文件的连接信息
fileName: 文件名称(若为 null 则从 fileUrl 中解析)
queryFriend 或 queryChatroom 获取 wxId。
send 接口。共 1 个版本