获取我的流量套餐

HTTP/HTTPS GET/POST UTF-8 JSON v1.0

接口地址:http://yesx2.com/api/platform.php?s=Platform.Mall_Mall.GetMyFlowList  

接口描述: 获取我的流量套餐

接口参数

参数名字类型是否必须默认值其他说明
access_token字符串可选访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口
page整型可选1当前页数
perpage整型可选10每页多少条

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.total整型总条数
data.page整型当前页数
data.perpage整型每页条数
data.items数组计划任务数据
data.items.id整型id
msg字符串提示信息,失败时的错误提示

在线测试   


参数是否必须
service 必须
access_token 可选
page 可选
perpage 可选

客户端请求示例

{
    "ret": 200,
    "data": {
        "total": 4,
        "items": [
            {
                "id": 4,
                "member_id": 1,
                "product_name": "配置接口流量套餐",
                "product_key": "App.Config.GetConfig",
                "product_key_lower": "app.config.getconfig",
                "total_amount": 1230,
                "used_amount": 0,
                "expire_time": 1607702400,
                "add_time": "2020-09-15 11:12:00",
                "flow_status": 10,
                "product_type": "api_buy",
                "order_id": "",
                "username": "admin",
                "finish_time": null,
                "flow_status_name": "未使用",
                "used_percent": 0,
                "expire_time_str": "2020-12-12 00:00:00"
            },
            {
                "id": 3,
                "member_id": 1,
                "product_name": "配置接口流量套餐",
                "product_key": "App.Config.GetConfig",
                "product_key_lower": "app.config.getconfig",
                "total_amount": 1230,
                "used_amount": 3,
                "expire_time": 1607702400,
                "add_time": "2020-09-15 11:11:52",
                "flow_status": 20,
                "product_type": "api_buy",
                "order_id": "",
                "username": "admin",
                "finish_time": null,
                "flow_status_name": "使用中",
                "used_percent": 0.24,
                "expire_time_str": "2020-12-12 00:00:00"
            },
            {
                "id": 2,
                "member_id": 1,
                "product_name": "条形码流量套餐",
                "product_key": "App.BarCode.Gen",
                "product_key_lower": "app.barcode.gen",
                "total_amount": 100,
                "used_amount": 0,
                "expire_time": 0,
                "add_time": "2020-09-14 17:59:48",
                "flow_status": 10,
                "product_type": "api_buy",
                "order_id": "",
                "username": "admin",
                "finish_time": null,
                "flow_status_name": "未使用",
                "used_percent": 0,
                "expire_time_str": "1970-01-01 08:00:00"
            },
            {
                "id": 1,
                "member_id": 1,
                "product_name": "条形码流量套餐",
                "product_key": "App.BarCode.Gen",
                "product_key_lower": "app.barcode.gen",
                "total_amount": 1230,
                "used_amount": 0,
                "expire_time": 1607702400,
                "add_time": "2020-09-14 17:59:38",
                "flow_status": 10,
                "product_type": "api_buy",
                "order_id": "",
                "username": "admin",
                "finish_time": null,
                "flow_status_name": "未使用",
                "used_percent": 0,
                "expire_time_str": "2020-12-12 00:00:00"
            }
        ],
        "page": 1,
        "perpage": 10
    },
    "msg": ""
}

错误列表

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

本文档生成时间:2024-04-19 23:57:55