查询购买的动态住宅流量套餐记录

查询购买的动态住宅流量套餐记录提示接入前,请您仔细阅读API文档说明,并按文档要求配置好请求地址和请求格式。
接口基本信息说明
查询当前用户购买的动态住宅流量记录
请求url
/externalapi/device/userSetMeal
请求方式
GET
请求信息请求参数必选参数类型说明access_token是sring用户token。用户登录之后,获取tokentype是int套餐类型:0=全球动态住宅,1=全球静态住宅,2=全球数据中心。此处固定为:0status是int计费模式:0=按流量,1=按时长,2=按ip数。此处固定为:0page是int当前页数pagesize是int每页显示数量{ "access_token": "access_token", "type": 0, "status": 0, "page": 1, "pagesize": 2}返回信息返回参数参数类型说明codeint返回状态,1=成功,0=失败msgstring返回消息timeint执行时间data.totalint总数量data.rowsarray套餐记录数据data.rows[].idint记录iddata.rows[].namesring套餐名称data.rows[].billsring流量数据。单位GBdata.rows[].moneysring消费金额data.rows[].typesring类型data.rows[].createtimeint新建时间戳data.rows[].set_meal_idint套餐iddata.rows[].is_renewsring是否续费。0=不续费,1=续费data.rows[].createtime_textsring格式化新建时间。{ "code": 1, "msg": "获取成功!", "time": "1686808936", "data": { "total": 38, "rows": [ { "id": 1004, "name": "1GB流量包", "bill": "1.00", "money": "14.90", "type": "0", "createtime": 1686561044, "set_meal_id": 43, "is_renew": "0", "createtime_text": "2023-06-12 17:10:44" }, { "id": 1003, "name": "10GB流量包", "bill": "10.00", "money": "109.90", "type": "0", "createtime": 1686560974, "set_meal_id": 46, "is_renew": "0", "createtime_text": "2023-06-12 17:09:34" } ] }}