Skip to content

推送礼物特效 ​

请求路径 ​

  • 请求方式:POST
  • 请求头:Content-Type:application/x-www-form-urlencoded
  • 接口地址:https://gateway.nuoyunapi.com/Api/Room/sendGift/2.0.0
  • 频率限制:10秒100次

请求参数 ​

参数必选类型描述
room_id是number直播间id
name是string买家昵称
photo是string买家头像地址(url)
type是number推送类型:1:系统礼物(未实现), 2:用户自定义礼物(未实现),3:自定义礼物
gift_name否string礼物名称。自定义礼物类型下必填
gift_img_src否string礼物图片(url)。自定义礼物类型下必填
gift_num否number礼物数量。自定义礼物类型下必填

响应参数 ​

参数必选类型描述
code是string状态码:200-成功,400-失败
msg是string提示信息
data是array消息内容

响应示例 ​

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

返回值状态码说明 ​

状态码描述
200成功
400失败