Skip to content

礼物榜列表

历史版本

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://gateway.nuoyunapi.com/Api/RoomStat/getRoomGiftRankList/2.0.0
  • 频率限制:10秒1000次

请求参数

参数必选类型描述
room_idinteger直播间id
pageinteger页码,从1开始
page_sizeinteger每页条数,最大100

请求示例

json
{
    "room_id": 10001,
    "page": 1,
    "page_size": 10
}

响应参数

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

data 参数结构

参数必选类型描述
listarray榜单列表
totalinteger总条数

list 参数结构

参数必选类型描述
wechat_user_space_idinteger用户id
from_client_namestring用户昵称
gift_money_sumstring礼物金额
client_photostring头像
third_openidstring微信openid

响应示例

json
{
  "code": 200,
  "data": {
    "total": 2,
    "list": [
      {
        "wechat_user_space_id": 10000001,
        "from_client_name": "昵称1",
        "gift_money_sum": "0.06",
        "client_photo": "https://example.com/avatar1.jpg",
        "third_openid": "oABCDEF123456789"
      },
      {
        "wechat_user_space_id": 10000002,
        "from_client_name": "昵称2",
        "gift_money_sum": "0.01",
        "client_photo": "https://example.com/avatar2.jpg",
        "third_openid": "oABCDEF987654321"
      }
    ]
  },
  "msg": "Success"
}

状态码说明

状态码描述
200成功
400失败
-1参数错误