https://www.example.com 。https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
参数 | 说明 |
https | 请求协议为 HTTPS,请求方式为 POST。 |
www.example.com | 回调 URL。 |
SdkAppid | 创建应用时在即时通信 Chat 控制台分配的 SDKAppID。 |
CallbackCommand | 固定为:C2C.CallbackAfterModifyMsg。 |
contenttype | 请求包体固定为 JSON。 |
ClientIP | 客户端 IP,格式如:127.0.0.1。 |
OptPlatform |
{"CloudCustomData": "1769772027","MsgBody": [{"MsgType": "TIMTextElem","MsgContent": {"Text": "2026-01-30T11:20:26.548Z"}}],"CallbackCommand": "C2C.CallbackAfterModifyMsg","Operator_Account": "jared","From_Account": "jared","To_Account": "Jonh","MsgRandom": 690,"MsgSeq": 609,"MsgTime": 1769771529,"MsgKey": "609_690_1769771529","ErrorInfo": "modify msg succeed","EventTime": 1769772027036}
字段 | 类型 | 说明 |
CloudCustomData | String | 消息自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)。 |
MsgBody | Array | |
CallbackCommand | String | 回调命令。 |
Operator_Account | String | 消息修改发起方 UserID。 |
From_Account | String | 消息发送方 UserID。 |
To_Account | String | 消息接收方 UserID。 |
MsgRandom | Integer | 消息随机数(32位无符号整数)。 |
MsgSeq | Integer | 消息序列号(32位无符号整数)。 |
MsgTime | Integer | 消息时间戳,UNIX 时间戳。 |
MsgKey | String | 消息唯一标识。 |
ErrorInfo | String | 错误信息。 |
EventTime | Integer | 事件触发的毫秒级别时间戳。 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // 0为回调成功,1为回调出错}
字段 | 类型 | 属性 | 说明 |
ActionStatus | String | 必填 | 请求处理的结果,OK 表示处理成功,FAIL 表示失败。 |
ErrorCode | Integer | 必填 | 错误码,0为回调成功;1为回调出错。 |
ErrorInfo | String | 必填 | 错误信息。 |
文档反馈