https://www.example.com.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 in the Chat console when creating an application |
CallbackCommand | Fixed as Live.CallbackAfterCreateBattle |
contenttype | The fixed value is json |
ClientIP | Client IP, format: 127.0.0.1 |
OptPlatform | Client platform. For the value, see Introduction to Third-Party Webhook for the parameter meaning of OptPlatform. |
{"CallbackCommand": "Live.CallbackAfterCreateBattle","Operator_Account": "brennanli","BattleId": "4siHsNsWN/T3aub9zKraqPbSEGRX2z6gs3LDFi+d/3M=", //battle id"FromRoomId": "pk-3", // Room ID of the caller initiating the battle"ToRoomIdList": [ // Room ID list of the callee participating in the battle"pk-5"],"Timeout": 30000, // If NeedResponse is true, the maximum waiting duration for the callee to process; if the callee does not process, it indicates giving up participating in the battle"Duration": 60000, // Duration after the battle starts, in milliseconds"NeedResponse": false, // If false, start the battle directly; if true, wait for the callees to process before starting the battle"ExtensionInfo": "extension pk","EventTime":1739954005000}
Field | Type | Description |
CallbackCommand | String | Webhook command. |
Operator_Account | String | Use who initiates battle request |
BattleId | String | Battle id |
FromRoomId | String | Room id of the caller initiating the battle |
ToRoomIdList | Array | List of callee participating in the battle |
Timeout | Integer | Maximum waiting duration after creating a battle, waiting for the callees to process, unit: ms. |
Duration | Integer | Duration of the battle |
NeedResponse | Bool | After creating a battle, is the consent of the callee's room owner required for joining? |
ExtensionInfo | String | Extended information of the battle |
EventTime | Integer | Millisecond-level timestamp triggered by the event |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore webhook result}
Field | Type | Attribute | Description |
ActionStatus | String | Mandatory | The result of the request process: OK indicates success; FAIL indicates failure |
ErrorCode | Integer | Mandatory | Error Code, here 0 means to ignore the response result |
ErrorInfo | String | Mandatory | Error message |
Feedback