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 Chat console at the time of application creation |
CallbackCommand | Fixed to Group.CallbackAfterChangeGroupOwner |
contenttype | Fixed value: JSON |
ClientIP | Client IP, for example: 127.0.0.1 |
OptPlatform | Client Platform, see the Webhook Overview - Callback Protocol for the meaning of the OptPlatform parameter |
{"CallbackCommand": "Group.CallbackAfterChangeGroupOwner", // Callback after the group owner changes"GroupId": "@TGS#2TTV7VSII", // Group ID"Type": "Public", // Group Type"Operator_Account": "admin", // Operating User ID"OldOwner_Account": "user1", // Original group owner"NewOwner_Account": "user2", // New group owner"EventTime":"1670574414123"// Event trigger timestamp in milliseconds}
Field | Type | Description |
CallbackCommand | String | Callback command |
GroupId | String | Operating Group ID |
Type | String | |
Operator_Account | String | Operating User UserID |
OldOwner_Account | String | Original Group Owner UserID |
NewOwner_Account | String | New Group Owner UserID |
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 |
この記事はお役に立ちましたか?