获取token

(1) 请求方式

POST

(2) 接口URL

类型 地址
测试服 http://sso.cqcet.edu.cn/test/oauth/token
正式服 http://sso.cqcet.edu.cn/oauth/token (http将于10月30日停用)
正式服(https) https://sso.cqcet.edu.cn/oauth/token

(3) 接口参数

参数名称 参数类型 是否可为空 说明
code String N 上一步返回的authorization code。
redirect_uri String N 成功授权后的回调地址(需要与上一步的回调地址保持一致)
grant_type String N 令牌请求的方式(授权码认证需要填写authorization_code)
client_id String N 系统id
client_secret String N 系统密码

(4) 返回结果说明

获取到code后,用于使用code进行授权码认证

result:0,表示获取数据失败,1,表示获取数据成功

msg:描述信息,若出现异常,则msg返回异常信息

示例:

{
  "result": 1,
  "msg": "消息发送成功",
  "data": {}
}

results matching ""

    No results matching ""