通用参数(Header)
Loading, please wait...
名称
类型
备注
Token string 渠道 Token (固定),请向管理员申请
业务参数(Body)
Loading, please wait...
名称
类型
备注
UserKey string 登录后获取的UserKey
UserId int 指定用户Id的详情,0=查看本人
RoomId string 指定用户在房间内的详情,不为空时 IsForbidSendMsg 生效
DEMO:
  1. {
  2. "UserKey": "oooooo",
  3. "RoomId": "oooooo",
  4. "UserId": 0
  5. }
响应参数
Loading, please wait...
名称
类型
备注
Code int 编码:0 = 成功、10000002 = 请先登录
Message string 返回的错误信息
Data object 业务数据包
NickName string 昵称
Sex string 性别
FaceUrl string 头像URL
Brief string 个人简介
PBalance int 平台货币余额
Id int 用户Id
FansCount int 粉丝数
FocusCount int 关注数
SendGiftProfit int 送出的礼物总收益
IsFocus bool 是否关注(UserId > 0 时字段有效)
IsForbidSendMsg bool 是否被禁言(RoomId != 空 时字段有效)
IsAdmin bool 是否是场控
IMUserId string 与IM交互用的UserId
VIPLevel int VIP等级,0=不是VIP
LiveLevel int 逻辑判断用直播等级
ShowLiveLevel int 显示用直播等级
LiveLevImgUrl string 直播等级专属徽章
LiveLevImgUrl2 string 直播等级聊天背景图
UserLevel int 逻辑判断用用户等级
ShowUserLevel int 显示用用户等级
UserLevImgUrl string 用户等级专属徽章
UserLevImgUrl2 string 用户等级聊天背景图
IsOfficial bool 是否是官方人员
IsAnchor bool 是否是主播
IsPlaying bool 是否直播中
RegisterType string 注册类型(手机号、Line、Apple...)
AnchorLiveTime string 主播开播时间预告
DEMO:
  1. {
  2. "Code": 0,
  3. "Message": "成功",
  4. "Data": {
  5. "NickName": "王五",
  6. "Sex": "女",
  7. "FaceUrl": "https://cdn.img.com/1.jpg",
  8. "Brief": "我很懒。。。啥都没写",
  9. "PBalance": 166666,
  10. "VIPLevel": 0,
  11. "LiveLevel": 1,
  12. "ShowLiveLevel": 1,
  13. "LiveLevImgUrl": "https://cdn.img.com/1.jpg",
  14. "LiveLevImgUrl2": "https://cdn.img.com/1.jpg",
  15. "UserLevel": 1,
  16. "ShowUserLevel": 1,
  17. "UserLevImgUrl": "https://cdn.img.com/1.jpg",
  18. "UserLevImgUrl2": "https://cdn.img.com/1.jpg",
  19. "FansCount": 10,
  20. "FocusCount": 8,
  21. "SendGiftProfit": 100,
  22. "IsFocus": true,
  23. "IsForbidSendMsg": false,
  24. "IsAdmin": false,
  25. "IsOfficial": false,
  26. "IsAnchor": false,
  27. "IsPlaying": false,
  28. "RegisterType": "Wechat",
  29. "AnchorLiveTime": "12月24日-19:30",
  30. "IMUserId": "oooooo",
  31. "Id": 2001
  32. }
  33. }