- 文档必读
- 监听回调事件
- api请求
- 获取群聊列表POST
- 获取好友列表POST
- 获取机器人信息POST
- 发送文本消息POST
- 回复引用文本消息POST
- 回复引用文本消息-新POST
- 发送图片消息POST
- 发送xml消息POST
- 发送文件消息POST
- 发送动态表情GIF消息POST
- 发送url卡片消息POST
- 发送小程序消息POST
- 发送音乐分享消息POST
- 发送聊天记录消息POST
- 发送名片消息POST
- 发送名片xml消息POST
- 获取机器人登录状态信息POST
- 获取机器人登录二维码信息(存在bug)请转至买断版本POST
- 同意好友申请POST
- 添加好友POST
- 从群里添加好友POST
- 删除好友POST
- 修改好友/群聊备注POST
- 查询陌生账号信息POST
- 查询好友/群聊信息POST
- 退出群聊POST
- 创建群聊POST
- 查询群聊信息POST
- 添加群成员POST
- 邀请群成员POST
- 移除群成员POST
- 修改机器人群昵称POST
- 查询群聊成员列表POST
- 获取群成员昵称POST
- 确认收款POST
- 退还收款POST
- 打开浏览器POST
- 启动微信POST
- 关闭微信POST
- 获取机器人列表POST
- 删除离线的机器人信息POST
- 根据wxId获取机器人信息POST
- 根据instanceId获取机器人信息POST
微信登录成功事件
POST
http://callbackurl
请求参数
Body 参数application/json
event
enum<string>
事件类型
枚举值:
10001
description
enum<string>
事件描述
枚举值:
微信登陆成功
time
integer
毫秒时间戳
示例值:
1726826627676
data
object
数据体
instanceId
string
实例id
示例值:
97554f7c82a1439c86df3143ef4975c5
robotId
string
微信id
示例值:
wxid_test
wxNum
string
微信号
示例值:
wxnum_test
nickname
string
微信昵称
示例值:
测试微信
device
string
登录设备
示例值:
device
phone
string
手机号
示例值:
13255475512
avatarUrl
string
头像
示例值:
https://wx.qlogo.cn/mmhead/ver_1/xxxxxx
country
string
国家
示例值:
CN
province
string
省
示例值:
Beijing
sign
string
账号签名
示例值:
账号签名
示例
{
"event": "10001",
"description": "微信登陆成功",
"time": 1726826627676,
"data": {
"instanceId": "97554f7c82a1439c86df3143ef4975c5",
"robotId": "wxid_test",
"wxNum": "wxnum_test",
"nickname": "测试微信",
"device": "device",
"phone": "13255475512",
"avatarUrl": "https://wx.qlogo.cn/mmhead/ver_1/xxxxxx",
"country": "CN",
"province": "Beijing",
"sign": "账号签名"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://callbackurl' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": "10001",
"description": "微信登陆成功",
"time": 1726826627676,
"data": {
"instanceId": "97554f7c82a1439c86df3143ef4975c5",
"robotId": "wxid_test",
"wxNum": "wxnum_test",
"nickname": "测试微信",
"device": "device",
"phone": "13255475512",
"avatarUrl": "https://wx.qlogo.cn/mmhead/ver_1/xxxxxx",
"country": "CN",
"province": "Beijing",
"sign": "账号签名"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-09-23 08:30:20