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.CallbackAfterMsgReadReceipt。 |
contenttype | 请求包体固定为 JSON。 |
ClientIP | 客户端 IP,格式如:127.0.0.1。 |
OptPlatform |
{"CallbackCommand": "C2C.CallbackAfterMsgReadReceipt", // 回调命令"Operator_Account": "jared", // 已读回执发送方"Peer_Account": "Jonh", // 会话对端"C2CMsgInfo": [{"From_Account": "Jonh","To_Account": "jared","MsgKey": "33973751_24064952_1769139583","MsgId": "144115433090395387-1769139578-24064952"}],"EventTime": 1769139587754 // 已读回执发送时间}
字段 | 类型 | 说明 |
CallbackCommand | String | 回调命令。 |
Operator_Account | String | 已读回执发送方 UserID。 |
Peer_Account | String | 会话对端 UserID。 |
EventTime | Integer | 已读回执发送时间。 |
MsgKey | String | 消息的 MsgKey。 |
MsgId | String | 消息的 MsgId。 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // 0为回调成功,1为回调出错}
字段 | 类型 | 属性 | 说明 |
ActionStatus | String | 必填 | 请求处理的结果,OK 表示处理成功,FAIL 表示失败。 |
ErrorCode | Integer | 必填 | 错误码,0为回调成功;1为回调出错。 |
ErrorInfo | String | 必填 | 错误信息。 |
文档反馈