阿拉星球 / 后台接口 / 登陆统计

登陆统计

接口描述: 获取登陆统计

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

接口参数

参数名字类型是否必须默认值其他说明
access_token字符串可选访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口
start_time字符串可选-开始时间
end_time字符串可选-结束时间

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.list字符串
data.list[].time整型时间
data.list[].total整型总登陆人数
data.list[].success整型登陆成功人数
data.list[].fail整型登陆失败人数
msg字符串提示信息,失败时的错误提示

在线测试   

参数是否必须
service 必须
access_token 可选
start_time 可选
end_time 可选

客户端请求示例

{
    "ret": 200,
    "data": [
        {
            "time": "2019-11-30",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-01",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-02",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-03",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-04",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-05",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-06",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-07",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-08",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-09",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-10",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-11",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-12",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-13",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-14",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-15",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-16",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-17",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-18",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-19",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-20",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-21",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-22",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-23",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-24",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-25",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-26",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-27",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-28",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-29",
            "total": 0,
            "success": 0,
            "fail": 0
        },
        {
            "time": "2019-12-30",
            "total": 8,
            "success": "1",
            "fail": "7"
        }
    ],
    "msg": ""
}

错误列表

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

本文档生成时间:2020-11-30 00:27:23