- 好友
- 分享
- 精华
- 阅读权限
- 255
- 注册时间
- 2017-8-17
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
接口详情 | 请求地址: | http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:sale | 请求方式: | GET | 返回格式: | JSON\XML /*默认返回JSON格式,如需返回XML格式,请在接口网址后面增加&output=xml参数*/ |
请求参数(所有参数值均URL加密后传输【注意GBK与UTF8编码区别】) | 参数 | 类型 | 是否必含 | 说明 | 示例 | token | [string] | 是 | token令牌(初始化用户登录获取) | 2b39JMyEmUNHqDxG_xinxiu__xin_xiu_ddyWn3OYaUvrE_xinxiu_4
H6iwm8DUUWwoTdJoh23LnceovVJArkjI12b | action | [string] | 是 | 接口方法 | sale_buy | int | [string] | 是 | 提取卡密数量 | 3 | price | [string] | 是 | 提取卡密面值 | 100 |
请求示例(GET) | - http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:sale&token={token令牌}&action=sale_buy&int=3&price=100
复制代码 |
返回参数(所有接口返回数据含中文时“\u672c\u6846”,请用USC2进行解码) | 参数 | 类型 | 是否必含 | 说明 | 示例 | code | [number] | 是 | http状态码 | 200 | result | [string] | 是 | 错误信息状态码 | yuanjia=300,zhekoujia=255 | count | [number] | 是 | 数组成员数 | 7 | data | [array] | 是 | 数组 | | data>>id | [string] | 是 | 获取所有未使用卡密 | XX2018ZMJJA15789SKJCX | data>>price | [string] | 是 | 卡密面值 | 100 | data>>extcreditskey | [string] | 是 | 卡密积分类型 | 1 | data>>extcreditsval | [string] | 是 | 卡密积分值 | 100 | data>>cleardateline | [string] | 是 | 卡密到期时间 | 1575372662 | sqltime | [string] | 是 | 页面执行时间(秒) | 0.0163s |
返回示例(JSON) | - {
- "code": 200,
- "result": "yuanjia=300,zhekoujia=255",
- "count": 7,
- "data": [{
- "id": "XX2018ZMJJA15789SKJCX",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575372662"
- }, {
- "id": "XX2018JFLAL85464S5CUW",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575382272"
- }, {
- "id": "XX2018XAJMM61978C58Y5",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575382617"
- }, {
- "id": "XX2018WVHQJ37721WQF9V",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575382894"
- }, {
- "id": "XX2018KUZDC83415HPGZ5",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575473763"
- }, {
- "id": "XX2018FTTYJ95368DG6UD",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575473763"
- }, {
- "id": "XX2018XAVTR44651R1ZT4",
- "price": "100",
- "extcreditskey": "1",
- "extcreditsval": "100",
- "cleardateline": "1575473763"
- }],
- "sqltime": "0.0163s"
- }
复制代码 |
错误提示码 | 错误码查询地址:点击访问 | BUG提交:点击提交 | QQ交流群:281079920 |
|
|