查询主/子账号流量使用情况
GET
/externalapi/sub_level_main_account/billTotal获取动态住宅流量子账号列表
请求参数
Query 参数
access_token
string
必需
用户token。用户登录之后,获取token
示例值:
{{access_token}}
fid
integer
子级主账号id
示例值:
1
id
integer
可选
子账号id,当查询类型为子账号流量时必须
示例值:
1
category
integer
必需
查询类别:0=主账号,1=子账号
示例值:
0
cycle
integer
必需
时长分组:0=按小时,1=按天,2=按月
示例值:
0
start_date
string
开始时间
示例值:
2024-06-10
end_date
string
结束时间
示例值:
2024-07-30
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
响应编码:1=正常,0=错误
msg
string
错误说明
time
string
响应时间戳
data
object
必需
time
integer
时间
flow
integer
使用流量
示例
{
"code": 1,
"msg": "获取成功!",
"time": "1710223753",
"data": {
"rows": [
{
"time": "2024-03-01",
"flow": 0
},
{
"time": "2024-03-02",
"flow": 0
},
{
"time": "2024-03-03",
"flow": 0
},
{
"time": "2024-03-04",
"flow": 0
},
{
"time": "2024-03-05",
"flow": 0
},
{
"time": "2024-03-06",
"flow": 0
},
{
"time": "2024-03-07",
"flow": 0
},
{
"time": "2024-03-08",
"flow": 0
},
{
"time": "2024-03-09",
"flow": 0
},
{
"time": "2024-03-10",
"flow": 0
},
{
"time": "2024-03-11",
"flow": 0
},
{
"time": "2024-03-12",
"flow": 0
},
{
"time": "2024-03-13",
"flow": 0
},
{
"time": "2024-03-14",
"flow": 0
},
{
"time": "2024-03-15",
"flow": 0
},
{
"time": "2024-03-16",
"flow": 0
},
{
"time": "2024-03-17",
"flow": 0
},
{
"time": "2024-03-18",
"flow": 0
},
{
"time": "2024-03-19",
"flow": 0
},
{
"time": "2024-03-20",
"flow": 0
},
{
"time": "2024-03-21",
"flow": 0
},
{
"time": "2024-03-22",
"flow": 0
},
{
"time": "2024-03-23",
"flow": 0
},
{
"time": "2024-03-24",
"flow": 0
},
{
"time": "2024-03-25",
"flow": 0
},
{
"time": "2024-03-26",
"flow": 0
},
{
"time": "2024-03-27",
"flow": 0
},
{
"time": "2024-03-28",
"flow": 0
},
{
"time": "2024-03-29",
"flow": 0
},
{
"time": "2024-03-30",
"flow": 0
},
{
"time": "2024-03-31",
"flow": 0
}
],
"total": 31
}
}
最后修改时间: 2 个月前