API系统说明
API接口说明文档
1、API系统说明
- API接口域名地址:https://u.wxext.cn
- 接口统一编码:UTF8
- 提交方式:GET
1.1、注意事项
- 1. 所有接口访问地址和参数,都需区分大小写;
2、获取appid
2.1、GET方式调用实例
- https://api.wxext.cn/auth?app=1&token=get&sid=sid
- sid通过e小天软件获取:个人中心->授权中心->去赞赏
2.2、提交参数
参数名 | 必传 | 缺省值 | 描述 |
---|---|---|---|
app | Yes | 1 | |
token | Yes | get | |
sid | Yes | 登录用户的sid |
2.3、返回值
- {"token":"","message":"API账号或密码错误(账号为: MY. 开头)"}
- {"status":true,"data":{"appid":"123","token":"234"}}
4、获取CODE
4.1、GET方式调用实例
- https://u.wxext.cn/?action=add&flag=3&num=1&val=0.3&expire=1&appid=x&token=x
4.2、提交参数
参数名 | 必传 | 缺省值 | 描述 |
---|---|---|---|
action | Yes | 固定为 add | |
flag | Yes | code类型,1账号月卡,2设备月卡,3临时卡 | |
num | Yes | 1 | 月数,临时卡固定为1 |
val | Yes | 所需贡献值=(账号:13,设备:100,临时:0.3)*num*0.7 | |
expire | No | 90 | code有效天数,默认90天 |
appid | Yes | appid | |
token | Yes | token |
4.3、返回值 JSON
- 错误:{"msg":"错误信息."}
- 正确: {"status":true,"data":{"code":"521f696a393bd7f1f388ccc7111fe75f459120a794c0c5ab","expire":"2022-01-08 16:20:46","flag":"3","num":1}}
4.4、备注
- 需要账户有足够的贡献值=val
历史列表
6.1、GET方式调用实例
- https://u.wxext.cn/?action=list&appid=x&token=x
6.2、提交参数
参数名 | 必传 | 缺省值 | 描述 |
---|---|---|---|
action | Yes | 固定 list | |
appid | Yes | appid | |
token | Yes | token |
6.3、返回值
- 错误:{"msg":"错误信息."}
- 正确:{"status":true,"data":{"data":[]}}
6.4、备注
- 当没有获取到短信时,需要再次调用此接口,建议每5秒调用一次,100次以后就不要再获取了。
- 正确获取验证码之后,无需调用拉黑、释放接口!
id取CODE
6.1、GET方式调用实例
- https://u.wxext.cn/?action=get&id=1&appid=x&token=x
6.2、提交参数
参数名 | 必传 | 缺省值 | 描述 |
---|---|---|---|
action | Yes | 固定 list | |
id | Yes | 列表里的id | |
appid | Yes | appid | |
token | Yes | token |
6.3、返回值
- 错误:{"msg":"错误信息."}
- 正确:{"status":true,"data":{"data":{"id":"4","state":"1","flag":"3","num":"1","etime":"2021-09-30 06:21:21","wxid":"","pcid":"","code":"b27e757963af9e6cfa80119cc1155d81dbf75473ba1ec768"}}}
code取token
6.1、GET方式调用实例
- https://api.wxext.cn/auth?app=1&auth=22&sid=sid&authname=%E5%B7%B2%E6%8E%88%E6%9D%83&wxid=wxid_sdf&code=x&authtime=1
6.3、返回值
- 错误:{"msg":"错误信息."}
- 正确:{"status":true,"data":{"token":"PvftDw==","wxid":"wxid_e7r22","pcid":"2932CBA4","auth":"2021-10-11 15:44:18","expire":1633938258}}
6.4、备注
- 用户可直接在授权中心填写code进行授权
- code取token是在原有授权接口加上code参数
- sid是用户的sid,兑换的token记录在该用户名下
- 用户名下有未到期的授权时,可叠加续期