后台接口

获取新客注册统计

接口地址:https://api.iyuu.cn/api/admin.php?s=Admin.User.GetDataFlow

接口描述: 获取一个月内每天新客注册统计,同比上个月

请求协议
HTTP/HTTPS
请求方式
GET/POST
编码格式
UTF-8
返回格式
JSON

接口参数

参数名字类型是否必须默认值其他说明
start_time字符串可选开始时间
end_time字符串可选结束时间

返回结果

返回字段类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误,详情参见错误列表
data对象/混合类型业务数据,由各自接口指定,通常为对象
data.list字符串
data.list[].time整型时间
data.list[].total整型注册人数
data.list[].monthAgo整型上个月注册人数
msg字符串提示信息,失败时的错误提示

在线测试   

参数是否必填
service 必须
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": ""
}

错误列表

错误状态码错误描述信息
400ret=400,客户端参数错误或非法请求
404表示接口服务不存在
406ret=406,access_token令牌校验不通过
407ret=407,app_key权限不足,或未知应用
408ret=408,当前用户禁止使用,或用户未登录
500表示服务端内部错误

本文档生成时间:2024-11-23 09:40:14