HTTP/HTTPS
请求协议
接口大师 / 后台接口 / 获取新客注册统计
获取新客注册统计
接口地址:https://13520.site/api/admin.php?s=Admin.User.GetDataFlow
接口描述: 获取一个月内每天新客注册统计,同比上个月
接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 可选 | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
start_time | 字符串 | 可选 | - | 开始时间 | |
end_time | 字符串 | 可选 | - | 结束时间 |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
data.list | 字符串 | |
data.list[].time | 整型 | 时间 |
data.list[].total | 整型 | 注册人数 |
data.list[].monthAgo | 整型 | 上个月注册人数 |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
参数 | 是否必须 | 值 |
---|---|---|
service | 必须 | |
access_token | 可选 | |
start_time | 可选 | |
end_time | 可选 |
客户端请求示例
{
"ret": 200,
"data": [
{
"time": "2019-11-30",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-01",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-02",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-03",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-04",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-05",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-06",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-07",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-08",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-09",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-10",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-11",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-12",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-13",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-14",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-15",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-16",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-17",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-18",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-19",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-20",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-21",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-22",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-23",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-24",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-25",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-26",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-27",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-28",
"total": 0,
"monthAgo": 0
},
{
"time": "2019-12-29",
"total": 1,
"monthAgo": 0
},
{
"time": "2019-12-30",
"total": 0,
"monthAgo": 0
}
],
"msg": ""
}
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
500 | 表示服务端内部错误 |
本文档生成时间:2025-01-16 21:48:42