房间列表
API 地址
api.vhallyun.com/api/v2/room/lists
描述
按当前公共参数传入app_id对应的应用,获取房间列表
入参
关于公共请求参数详细内容,请参考 公共请求参数。
| 参数 | 类型 | 是否必选 | 含义 |
|---|---|---|---|
| pos | int | 否 | 获取条目节点,默认为 0。eg : 10, 从第10条开始查询 |
| limit | int | 否 | 获取条目数量, 默认为 10 条, 最大为1000条 |
出参
| 参数 | 类型 | 是否必选 | 含义 |
|---|---|---|---|
| room_id | string | 是 | 房间ID |
| app_id | string | 是 | app_id |
| is_disable | int | 是 | 是否禁停房间,0 非禁停,1 禁停 |
| created_at | string | 是 | 创建时间 |
错误码
| 错误码 | 类型 | 含义 |
|---|---|---|
| 10057 | int | 当前页数不能为空 |
| 20002 | int | 房间查询为空 |
| 40008 | int | 分页起始提条目不正确 |
| 40009 | int | 分页条目不正确 |
| 40071 | int | 参数类型错误 |
响应格式
{
"code": 200,
"msg": "",
"data": [
{
"room_id": "lss_314eaf4b",
"app_id": "app_id_1",
"is_disable": 0,
"created_at": "2017-12-01 21:27:09"
},
{
"room_id": "lss_b42cd4bd",
"app_id": "app_id_1",
"is_disable": 0,
"created_at": "2017-12-04 11:01:16"
},
{
"room_id": "lss_b88e1673",
"app_id": "app_id_1",
"is_disable": 0,
"created_at": "2017-12-04 11:18:54"
}
]
}
