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 | SDKAppID allocated by the Chat console at the time of Application creation |
CallbackCommand | Set to Group.CallbackAfterGroupAttrChanged |
contenttype | Fixed value: JSON |
ClientIP | Client IP, such as 127.0.0.1 |
OptPlatform | Client Platform, see the meaning of the OptPlatform parameter in Third-Party Callback Introduction - Callback Protocol |
{"CallbackCommand": "Group.CallbackAfterGroupAttrChanged","GroupId": "@TGS#2J4SZEAEL","Type": "Public","Operator_Account": "leckie","OptionType":"set", // "set": Reset the attribute defined by the user; "modify": Modify the attribute defined by the user; "clear": Clear the attribute defined by the user; "delete": Delete the attribute defined by the user"GroupAttr": [{"key": "key1","value": "value1"},{"key": "key2","value": "values"}],"EventTime":"1670574414123"// Event trigger timestamp in milliseconds}
Field | Type | Description |
CallbackCommand | String | Callback command |
GroupId | String | Operating Group ID |
Type | String | |
Operator_Account | String | UserID of the operator initiating the request to change the group's user-defined attributes |
GroupAttr | Array | Custom Attribute List, where key is the name of the user-defined attribute, and value is the value of the user-defined attribute |
EventTime | Integer | Event trigger timestamp in milliseconds |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore callback result}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Processed Request Result: OK: Indicates successful processing FAIL: Indicates failure |
ErrorCode | Integer | Required | Error Code, entering 0 here means to ignore the response result |
ErrorInfo | String | Required | Error message |
문제 해결에 도움이 되었나요?