SDKAppID
contained in the request URL is the SDKAppID
of the app.https://www.example.com
.
Example:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST. |
www.example.com | Callback URL |
SdkAppid | The SDKAppID assigned by the IM console when the app is created |
CallbackCommand | Fixed value: Group.CallbackSendMsgException . |
contenttype | Fixed value: JSON . |
OptPlatform | Client platform. For valid values, see the description of OptPlatform in the Callback Protocols section of Third-Party Callback Overview. |
{"CallbackCommand": "Group.CallbackSendMsgException", // Callback command"GroupId": "@TGS#2J4SZEAEL", // Group ID"Type": "Public", // Group type"From_Account": "jared", // Sender"Operator_Account":"admin", // Request initiator"Random": 123456, // Random number"OnlineOnlyFlag": 1, // The value is `1` if it is an online message and `0` (default) if it’s not. For audio-video groups, the value is `0`."MsgBody": [ // Message body. For more information, see the `TIMMessage` message object.{"MsgType": "TIMTextElem", // Text"MsgContent":{"Text": "red packet"}}],"CloudCustomData": "your cloud custom data","ErrorCode": 10023, // Message exception error code"ErrorInfo": "msg count exceeds limit,please retry later" // Message exception details"EventTime":"1670574414123"// Event trigger timestamp in milliseconds}
Field | Type | Description |
CallbackCommand | String | Callback command |
GroupId | String | ID of the group that generates group messages |
Type | String | Type of the group that generates group messages, such as Public . For details, see Group Types section in Group System. |
From_Account | String | UserID of the message sender |
Operator_Account | String | UserID of the request initiator, based on which the system can identify whether the request is initiated by the admin. |
Random | Integer | A 32-bit random number in the request |
OnlineOnlyFlag | Integer | The value is 1 if it is an online message and 0 (default) if it’s not. For audio-video groups, the value is 0 . |
MsgBody | Array | |
CloudCustomData | String | Custom message data. It is saved in the cloud and will be sent to the peer end. Such data can be pulled after the app is uninstalled and reinstalled. |
ErrorCode | Interger | |
ErrorInfo | String | Message exception details |
EventTime | Integer | Event trigger timestamp in milliseconds |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0}
Field | Type | Required | Description |
ActionStatus | String | Required | Request result. Fixed value: OK . |
ErrorCode | Integer | Required | Error code. Fixed value: 0 . |
ErrorInfo | String | Required | Error message. Fixed value: An empty string. |
문제 해결에 도움이 되었나요?