TUILiveKit 产品动态
云直播推拉流 SDK 产品动态
https://xxxxxx/v4/live_engine_http_srv/send_gift?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
参数 | 说明 |
xxxxxx | SDKAppID 所在国家/地区对应的专属域名: 中国: console.tim.qq.com新加坡: adminapisgp.im.qcloud.com美国: adminapiusa.im.qcloud.com |
v4/live_engine_http_srv/send_gift | 创建直播间接口 |
sdkappid | |
identifier | |
usersig | |
random | 请输入随机的32位无符号整数,取值范围0 - 4294967295。 |
contenttype | 请求格式,固定值为 json。 |
{"RoomId": "room_id","GiftId": "gift1","Count": 1,"From_Account": "user1","ReceiverList_Account": ["user2"]}
字段 | 类型 | 属性 | 说明 |
RoomId | String | 必填 | 房间 ID |
GiftId | String | 必填 | 礼物 ID,必须是已经通过礼物配置API配置的礼物 |
From_Account | String | 必填 | 送礼人 |
ReceiverList_Account | Array | 必填 | 被送礼人 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-8c9858f01e954611ae2d4c1b1ed7d583-O-Seq-52720"}
字段 | 类型 | 说明 |
ActionStatus | String | 请求处理的结果。 OK 表示处理成功。 FAIL 表示失败。 |
ErrorCode | Integer | 错误码。 0:表示成功。 非0:表示失败。 |
ErrorInfo | String | 错误信息。 |
RequestId | String | 唯一请求 ID,每次请求都会返回,定位问题时需要提供该次请求的 RequestId。 |
错误码 | 含义说明 |
100001 | 服务器内部错误,请重试。 |
100002 | 请参数非法,请根据错误描述检查请求是否正确。 |
100003 | 房间 ID 已存在,请选择其他房间 ID。 |
102001 | 礼物能力未开启,请检查付费套餐。 |
102002 | 该礼物ID不存在。 |
102004 | 礼物前回调失败。 |
102008 | 当前房间礼物开关未开启。 |
文档反馈