Skip to content

推送礼物特效

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/x-www-form-urlencoded
  • 接口地址:/Third/Room/sendGift
  • 频率限制:10秒100次

请求参数

参数必选类型描述
room_idstring直播间id
namestring买家昵称
photostring买家头像地址(url)
typeint推送类型:1:系统礼物(未实现), 2:用户自定义礼物(未实现),3:自定义礼物
gift_namestring礼物名称。自定义礼物类型下必填
gift_img_srcstring礼物图片(url)。自定义礼物类型下必填
gift_numstring礼物数量。自定义礼物类型下必填

响应参数

参数必选类型描述
codestring状态码:200-成功,400-失败
msgstring提示信息
dataarray消息内容

响应示例

json
{
    "code": 200,
    "msg": "success",
    "data": []
}

返回值状态码说明

状态码描述
200成功
400失败