用户状态信息查询API说明

2021-03-26 08:08:00

说明:
新增用户状态查询API,通过本接可查询帐户余额、接口套餐、接口锁定等状态情况。


使用范例:(将appkey和sign参数替换成您自己的)
https://sapi.k780.com/?app=account.myState&appkey=您的appkey&sign=您的sign


响应:
1. 正确响应

{
success: "1",
result: {
userInfo: {--用户信息
uid: "10000", /*注册用户UID*/
usernm: "jasonss", /*注册用户名*/
balance: "3272.853" /*帐户余额*/
},
userIntfList: {--接口套餐列表
501: {
intId: "501", /*接口编号*/
intNm: "IP地址归属地查询", /*接口名称*/

--包月套餐节点(ct开头)
ctMk: "1", /*包月套餐1:是 0:否*/
ctActReqty: "1000", /*套餐配额(小时)*/
ctActExpdate: "2020-09-16 00:00:00", /*套餐过期时间*/

--流量包套餐节点(fa开头)
faMk: "0", /*流量包套餐1:是 0:否*/
faAvaReqty: "0", /*可用流量(次)*/

--免费试用套餐节点(fc开头)
fcMk: "0", /*免费试用套餐1:是 0:否*/
fcActReqty: "0", /*套餐配额(小时)*/
fcActExpdate: "" /*套餐过期时间*/

--包月套餐、免费试用套餐超额锁定判断节点(lock开头)
lockMk: "1",/*锁定状态 1:是 0:否*/
lockDate: "2021-03-26 09:11:23",/*锁定时间*/
lockReqty: "51"/*触发锁定调用量*/
},
502: {
intId: "502",
intNm: "手机号码归属地查询",
ctMk: "0",
ctActReqty: "0",
ctActExpdate: "",
faMk: "1",
faAvaReqty: "157443",
fcMk: "0",
fcActReqty: "0",
fcActExpdate: ""
lockMk: "1",
lockDate: "2021-03-26 09:11:23",
lockReqty: "51"
},
....

2.异常响应

{
success: "1",
msgid: "异常ID",
msg: "异常消息",
}