获取产品概况
请求地址
GET /api/live/v1/product/overview
header
字段 | 是否可选 | 类型 | 描述 |
---|---|---|---|
Authorization | 否 | string | 认证信息,格式:bearer ${token} |
Accept-Language | 是 | string | 选择语言,(zh-CN)(zh-TW)(en-US) 默认值: zh-CN |
Content-Type | 是 | string | application/x-www-form-urlencoded |
请求参数
字段 | 是否可选 | 类型 | 描述 |
---|---|---|---|
category | 是 | String | 产品类目,取值: ROOM_COUNT:房间数 CLIENT_ROOM_COUNT:客户端房间数 DATA_FLOW:流量 STORAGE:存储空间 DURATION:时长 注意:不传默认获取全部产品概况 |
响应参数
字段 | 类型 | 描述 |
---|---|---|
resCode | int | 响应码 |
resMessage | String | 提示消息(根据language参数,选择语言返回) |
data | json | 响应数据 |
成功返回
http/1.1 200 OK
{
"resCode": 1,
"resMessage": "success",
"data":{
"ROOM_COUNT":{
"total":102,
"limited":true,
"used":0,
"productList":[{
"originalValue":"2",
"startTime":1544169420000,
"endTime":1575705420000,
"currentValue":"2",
"status":1
},{
"originalValue":"100",
"startTime":1545732273000,
"endTime":1577268273000,
"currentValue":"100",
"status":1
}
]},
"CLIENT_ROOM_COUNT":{
"total":102,
"limited":true,
"used":0,
"productList":[{
"originalValue":"2",
"startTime":1544169420000,
"endTime":1575705420000,
"currentValue":"2",
"status":1
},{
"originalValue":"100",
"startTime":1545732273000,
"endTime":1577268273000,
"currentValue":"100",
"status":1
}
]},
"DATA_FLOW":{
"total":32319628902400,
"limited":true,
"used":21476723370904,
"productList":[{
"originalValue":"32212254720000",
"startTime":1544169420000,
"endTime":1575705420000,
"currentValue":"10735531349096",
"status":1
}
]},
"STORAGE":{
"total":214748364800,
"limited":true,
"used":1794463824,
"productList":[{
"originalValue":"214748364800",
"startTime":1544169420000,
"endTime":1575705420000,
"currentValue":"214748364800",
"status":1
}
]},
"DURATION":{
"total":214748364800,
"limited":true,
"used":1794463824,
"productList":[{
"originalValue":"214748364800",
"startTime":1544169420000,
"endTime":1575705420000,
"currentValue":"214748364800",
"status":1
}
]},
"startTime": 1544169415000,
"endTime": 1577289599000,
"productName":"专业版产品",
"status":1
}
}
}
失败返回
http/1.1 200 OK
{
"resCode": -1,
"resMessage": "xxx",
}