Skip to content

用户观看列表

请求路径

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

请求参数

参数必选类型描述
start_timestring搜索项:开始时间。如:2021-08-10 00:00:00 。默认当天
end_timestring搜索项:结束时间。如:2021-08-10 17:50:07
room_idnumber直播间id
pageCurrentnumber当前页码。默认第一页。默认15条

响应参数

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

data 参数结构

参数必选类型描述
listarray用户列表
total_rownumber总条数

list 参数结构

参数必选类型描述
third_openidstring微信的openid(计划废弃)
user_namestring用户名
first_timestring初次访问时间
last_timestring最近访问时间
online_timestring在线时长
regionstring最近访问地域
ipstring最近访问IP
earningsstring收益(单位:元)
wechat_user_space_idnumber用户id
third_uuidstring第三方系统唯一标识
third_wechat_infoarray第三方微信信息

third_wechat_info 参数结构

参数必选类型描述
authorizer_appidstring第三方公众号appid
openidstring第三方openid
unionidstring第三方unionid

响应示例

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "list": [
      {
        "third_openid": "xxxxxxx",
        "user_name": "xxxx",
        "first_time": "2023-12-11 21:52:04",
        "last_time": "2023-12-11 22:34:26",
        "online_time": "1小时18分59秒",
        "region": "中国 河南 郑州",
        "ip": "171.1x.15x.8x",
        "earnings": "0.00",
        "wechat_user_space_id": "1",
        "third_uuid":  "TEST17",
        "third_wechat_info": [
          {
            "authorizer_appid": "xxxxxxx",
            "openid": "xxxxxxx",
            "unionid": "xxxxxxx"
          }
        ]
      }
    ],
    "total_row": "1"
  }
}

状态码说明

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