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 | Callback URL |
SdkAppid | The SDKAppID assigned in the Chat console when creating an application |
CallbackCommand | Fixed as Live.CallbackAfterEndBattle |
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.CallbackAfterEndBattle","BattleId": "4siHsNsWN/T3aub9zKraqPfGQAimPhdFoe6VWhtz9lY=","Duration": 30000,"CreateTime": 1739956115,"StartTime": 1739956115,"EndTime": 1739956145,"OpType": 0, // 0 indicates normal completion when time is up; 1 indicates completion caused by all streamers exiting after the battle starts; 2 indicates that the battle was created but ended directly without starting because no streamers joined."FromRoomInfo": { //Caller information"RoomId": "pk-3","Score": 0,"Owner_Account": 144115245353757792},"ToRoomList": [ // Called party information{"RoomId": "pk-5","Score": 0,"Owner_Account": 144115245442327522}],"EventTime": 1739956146119}
Field | Type | Description |
CallbackCommand | String | Callback command |
BattleId | String | Battle Id |
Duration | Integer | Duration of the battle |
CreateTime | Integer | Creation time of the battle |
StartTime | Integer | Start time of the battle |
EndTime | Integer | Termination time of the battle |
OpType | Integer | 0 indicates normal completion when time is up; 1 indicates completion caused by all room owners exiting after the battle starts; 2 indicates that the battle was created but ended directly without starting because no room owners joined. |
FromRoomInfo | String | Caller information of the battle |
ToRoomList | Array | Callee information of the battle |
RoomId | String | Room Id |
Score | Integer | The room score in battle |
Owner_Account | String | The room owner in battle |
EventTime | Integer | Millisecond-level timestamp triggered by the event |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // Ignore callback result}
Field | Type | Attribute | Description |
ActionStatus | String | Required | The result of request processing. OK indicates successful processing, FAIL indicates failure |
ErrorInfo | String | Required | Error message |
ErrorCode | Integer | Required | Error code |