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 | Fixed value: Group.CallbackAfterMemberFieldChanged |
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.CallbackAfterMemberFieldChanged", // Callback after Group Member Profile Change"GroupId": "@TGS#xxxx", // Group ID"Type": "Community", // Group type"Operator_Account": "admin", // Operating User ID"Member_Account": "123456", // User ID"Role": "Admin", // Changed Member Status"NameCard": "jacky", // Changed Group Card Name"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 Change Request |
Member_Account | String | Change Member UserID |
Role | String | Changed Member Status, Admin/Member for setting/canceling administrator respectively |
NameCard | String | Changed Group Card Name |
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 |
この記事はお役に立ちましたか?