Default Gift Config
Feature Description
App administrators can configure default gift information through this interface. No other gift configurations are allowed in the account before configuration.
Default Configuration Description
The default configuration has 3 gift categories and 15 gifts. After configuration, it can be displayed on the demo. See Run Sample Demo。
API Call Description
Sample Request URL
https://xxxxxx/v4/live_engine_http_srv/copy_default_gift_config?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Request Parameters
The table below only lists the parameters modified when this interface is called. For more details on other parameters, please refer to RESTful API Overview.
Parameter | Description |
xxxxxx | The reserved domain for the country/region where the SDKAppID is located: Others in China: console.tim.qq.comSingapore : adminapisgp.im.qcloud.comUnited States: adminapiusa.im.qcloud.com |
v4/live_engine_http_srv/copy_default_gift_config | Request API |
sdkappid | SDKAppID assigned by the Chat console when an app is created |
identifier | |
usersig | |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295 |
contenttype | Request format fixed value: json |
Maximum Calling Frequency
1 time/10 second.
Sample Request Packet
Basic form
{}
Response Package Example
Basic form
{"ErrorCode": 0,"ErrorInfo": "","ActionStatus": "OK","RequestId": "Id-fecb13a5827b425d9be4b9c79ac10f67-O-Seq-284018"}
Request Packet Fields
Field | Type | Description |
ActionStatus | String | Request processing result. OK: processing successful; FAIL: processing failed. |
ErrorCode | Integer | Error code: 0 indicates success, non-zero indicates failure. |
ErrorInfo | String | Error message. |
RequestId | String | Unique request ID, returned for each request. RequestId is required for locating a problem. |
Error Code Description
Unless a network error occurs (such as 502), the HTTP return code of this API is 200. The actual error code and error information are in the ErrorCode and ErrorInfo fields of the response payload.
The private error codes of this API are as follows:
Error Code | Description |
100001 | Server internal error, please try again. |
100006 | Insufficient operational permissions. Admin account is required to perform the operation. |
100012 | Call frequency is too high. The maximum gift addition call frequency is 1 time/10s。 |
102001 | No payment information. Purchase package in the console. |
102010 | The gift configuration already exists, and the configuration needs to be completely deleted before configuring the default gift. |