- 文档必读
- 监听回调事件
- 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>
事件类型
枚举值:
10005
description
string
事件描述
示例值:
转账事件
time
integer
毫秒时间戳
示例值:
1726826627676
data
object
数据体
instanceId
string
实例id
示例值:
97554f7c82a1439c86df3143ef4975c5
invalidTime
integer
必需
示例值:
1716716297
messageId
string
消息id
示例值:
7053704521966022857
transType
integer
必需
2 延时到账
示例值:
1
messageSource
integer
必需
2 对方接收转账
3 发出转账
4 自己接收转账
5 对方退还
6 自己退还
fromWxId
string
好友wxid
示例值:
test
money
string
金额 单位元
示例值:
0.01
memo
string
转账备注
示例值:
测试转账
transferId
string
必需
示例值:
1000050001202405250826818609917
transcationId
string
必需
示例值:
53010000356101202405250814531240
示例
{
"event": "10005",
"description": "转账事件",
"time": 1726826627676,
"data": {
"instanceId": "97554f7c82a1439c86df3143ef4975c5",
"invalidTime": 1716716297,
"messageId": "7053704521966022857",
"transType": 1,
"messageSource": 0,
"fromWxId": "test",
"money": "0.01",
"memo": "测试转账",
"transferId": "1000050001202405250826818609917",
"transcationId": "53010000356101202405250814531240"
}
}
示例代码
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 ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-09-23 02:40:18