# 解绑学生校园卡
# 1.接口地址
# 请求方法:
POST(application/json)
# 请求地址:
https://weixiao.qq.com/apps/school-api/deactive
# 2.请求参数
{
"school_code": "SCHOOL_CODE",
"card_number": "CARD_NUMBER",
"card_id": "CARD_ID",
"timestamp": "TIMESTAMP",
"nonce": "NONCE",
"app_key": "APP_KEY",
"signature": "SINGATURE"
}
字段名 | 变量名 | 必填 | 示例值 | 类型 | 说明 |
---|---|---|---|---|---|
学校代码(查看本校代码 (opens new window)) | school_code | 是 | 104216666 | String | 学校唯一代码 |
电子卡号/学工号 | card_number | 是 | 5654125 | String | 学生的学号 |
校园卡ID | card_id | 是 | [816,815,444] | String | json_encode之后的json数组字符串 |
时间戳 | timestamp | 是 | 1514276659 | int | 当前unix时间戳 |
随机串 | nonce | 是 | 5K8264ILTKCH16CQ2502SI8ZNMTM67VS | String(32) | 随机字符串 |
应用key | app_key | 是 | SDFSDFD | String(32) | 腾讯微卡分配的app_key |
签名 | signature | 是 | a790e009d30c09bd8605810eaf9c44b0 | String(32) | 签名 |
签名方式:见签名算法。
# 3.返回数据
# 响应说明:
{
"code": 0,
"message":'ok',
}
# 错误返回:
{
"code": xxx,(非0错误码)
"message": xxx,(错误信息)
}
# 4.错误码
名称 | 解决方案 |
---|---|
10005 | app_key权限不足 |
10001 | 学校代码不正确 |