https://www.example.com
.https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | Request Protocol: HTTPS, Request Method: POST |
www.example.com | Callback URL |
SdkAppid | The SDKAppID assigned in the Chat console when creating an application |
CallbackCommand | Fixed as Live.CallbackAfterStartBattle |
contenttype | The fixed value is json |
ClientIP | Client IP, format as: 127.0.0.1 |
OptPlatform | Client platform. For the value, see Introduction to Third-Party Callback for the parameter meaning of OptPlatform |
{"CallbackCommand": "Live.CallbackAfterStartBattle","BattleId": "4siHsNsWN/T3aub9zKraqI4zZAyPRpXQhdtKv1q4HOs=", // battle id"Duration": 60000, // battle duration"CreateTime": 1739954005, // battle creation time, in seconds"StartTime": 1739954005, // battle start time, in seconds"FromRoomInfo": { // Caller information in battle"RoomId": "pk-3","Owner_Account": "brennan"},"ToRoomList": [ // Called party information in battle{"RoomId": "pk-5","Owner_Account": "tandy"}],"EventTime": 1739954005000, // Callback trigger time, in milliseconds}
Field | Type | Description |
CallbackCommand | String | Callback command |
BattleId | String | Battle id |
Duration | Integer | Battle duration |
CreateTime | Integer | Creation time of the battle |
StartTime | Integer | Start time of the battle |
FromRoomInfo | String | Caller information in battle |
ToRoomList | Array | Information of the callee participating in the battle |
RoomId | String | Room id |
Owner_Account | String | The owner id of room |
EventTime | Integer | Millisecond-level timestamp triggered by the event |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore callback result}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Result of request processing. OK indicates success and FAIL indicates failure. |
ErrorCode | Integer | Required | Error code. Fill in 0 here to ignore the callback result. |
ErrorInfo | String | Required | Error message. |