简要描述:
- 获取直播房间列表
请求域名:
- http://xx.com
请求URL:
POST:plugin.appletslive.frontend.controllers.live.getRoom
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": [
{
"name": "asfafasfa",
"cover_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHz8BBNFrYGGnwOTT7mmcdibDP5ENEiagoWodS9QuqE8sNUK2DH79Y9v9uwicb1Dh7LAt6tlHIIarzIMw/0?wx_fmt=jpeg",
"start_time": 1582956000,
"end_time": 1582959423,
"anchor_name": "撒打算",
"anchor_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHz8BBNFrYGGnwOTT7mmcdibDP5ENEiagoWodS9QuqE8sNUK2DH79Y9v9uwicb1Dh7LAt6tlHIIarzIMw/0?wx_fmt=jpeg",
"roomid": 3,
"goods": [],
"live_status": 102
},
{
"name": "云的哈撒打算",
"cover_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHz8BBNFrYGGnwOTT7mmcdibDP5ENEiagoWodS9QuqE8sNUK2DH79Y9v9uwicb1Dh7LAt6tlHIIarzIMw/0?wx_fmt=jpeg",
"start_time": 1582945200,
"end_time": 1582947001,
"anchor_name": "实打实的",
"anchor_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHz8BBNFrYGGnwOTT7mmcdibDP5ENEiagoWodS9QuqE8sNUK2DH79Y9v9uwicb1Dh7LAt6tlHIIarzIMw/0?wx_fmt=jpeg",
"roomid": 2,
"goods": [],
"live_status": 102
},
{
"name": "直播测试",
"cover_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHxTaPqSia3icGL5qWlSDfy0QL2Ck1Xw1qC5GQFwHkzmtt8GvJk64owfibAqa88s2alarC92KMGGxU72Q/0?wx_fmt=jpeg",
"start_time": 1582883100,
"end_time": 1582885800,
"anchor_name": "芸众测试锋",
"anchor_img": "http://mmbiz.qpic.cn/mmbiz_jpg/VUf3ILX2DHxTaPqSia3icGL5qWlSDfy0QL2Ck1Xw1qC5GQFwHkzmtt8GvJk64owfibAqa88s2alarC92KMGGxU72Q/0?wx_fmt=jpeg",
"roomid": 1,
"goods": [],
"live_status": 102
}
]
}
错误时返回:
{
"result": 0,
"msg": "未检测到数据!",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 房间名 |
roomid | int | 房间id |
cover_img | string | 封面图片url |
start_time | int | 直播计划开始时间 |
end_time | int | 直播计划结束时间 |
anchor_name | string | 主播名 |
goods | array | 商品 |
live_status | int | 直播状态 101: 直播中, 102: 未开始, 103: 已结束, 104: 禁播, 105: 暂停中, 106: 异常,107:已过期 |