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 | Webhook URL. |
SdkAppid | The SDKAppID assigned by the Chat console when the app is created. |
CallbackCommand | Fixed value: Group.CallbackBeforeCreateGroup. |
contenttype | Fixed value: JSON. |
ClientIP | Client IP, such as 127.0.0.1. |
OptPlatform | Client platform. For valid values, see the description of OptPlatform in the Webhook Protocols section of Webhook Overview. |
{"CallbackCommand": "Group.CallbackBeforeCreateGroup", // Webhook command"Operator_Account": "leckie", // Operator"Owner_Account": "leckie", // Group owner"Type": "Public", // Group type"Name": "MyFirstGroup", // Group name"Introduction" : "introduction","Notification" : "notification","MemberList": [ // List of initial members{"Member_Account": "bob"},{"Member_Account": "peter"}],"EventTime":"1670574414123"// Event trigger timestamp in milliseconds}
Object | Type | Description |
CallbackCommand | String | Webhook command. |
Operator_Account | String | UserID of the operator who initiates the group creation request. |
Owner_Account | String | UserID of the owner of the group requested to be created. |
Type | String | Type of the group that generates group messages, such as Public. For details, see Group Types section in Group System. |
Name | String | Name of the group requested to be created. |
Introduction | String | Group introduction. |
Notification | String | Group notification. |
MemberList | Array | List of initial members of the group requested to be created. |
EventTime | Integer | Event trigger timestamp in milliseconds. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Creation allowed}
10016 will be returned to the caller.{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 1 // Creation refused}
Field | Type | Required | Description |
ActionStatus | String | Yes | Request result. OK: Successful; FAIL: Failed. |
ErrorCode | Integer | Yes | Error code returned. 0: Allows group creation; 1: Forbids group creation. If the business side wants to use a custom error code to forbid a user to create a group and send ErrorCode and ErrorInfo to the client, ensure that the value of ErrorCode is set within the range of [10100, 10200]. |
ErrorInfo | String | Yes | Error information. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários