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.CallbackBeforeCreateTopic . |
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 Callback Protocols section of Third-Party Callback Overview. |
{"CallbackCommand": "Group.CallbackBeforeCreateTopic", // Callback command"Operator_Account": "leckie", // Operator"Type": "Community", // Group type"Name": "MyFirstTopic" // Group name}
Object | Type | Description |
CallbackCommand | String | Callback command |
Operator_Account | String | UserID of the operator who initiates the topic creation request |
Type | String | Group type of the topic. Here, it is Community . |
Name | String | Name of the topic requested to be created |
{"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. Valid values: 0 (creation allowed); 1 (creation refused). If you want to use your own error code to refuse a user request for topic creation, you need to pass in ErrorCode and ErrorInfo to the client, with ErrorCode in the range of [10100,10200]. |
ErrorInfo | String | Yes | Error message |
Was this page helpful?