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.CallbackBeforeSendGift. |
contenttype | The value is fixed as json. |
ClientIP | Client IP address in the format of 127.0.0.1. |
OptPlatform | Client platform. For the valid values, see the description of the OptPlatform parameter in Webhook Protocol in Webhook Overview. |
{"CallbackCommand": "Live.CallbackBeforeSendGift","Operator_Account": "brennanli","RoomId":"room_id","GiftWater": {"From_Account": "from","To_Account": ["to1"],"Time": 1703589922,"GiftId": "gift1","Count": 1,"Coins": 1000}}
Field | Type | Description |
CallbackCommand | String | callback command. |
Operator_Account | String | Operator UserID who triggered the battle request. |
RoomId | String | room ID. |
From_Account | String | gift sender. |
To_Account | Array | gift recipient. |
Time | Integer | Timestamp. |
GiftId | String | gift ID. |
Count | Integer | gift number. |
Coins | Integer | gift value. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Request processing result. OK: processing successful; FAIL: processing failed. |
ErrorCode | Integer | Required | 0 means agree, 1 means Reject. The error code interval that can be passed through is [102100,102200]. |
ErrorInfo | String | Required | Error Message. |
Feedback