登录
路由:oauth/token
方法:GET
参数:
grant_type = password 固定参数
client_id = app 固定参数
username = 用户名
password = 密码
返回:
{
"code":100,
"msg":"授权成功",
"data":{
"access_token":"", 授权码
"token_type":"", 授权类型
"expires_in":12593, 授权到期时间
}
}
返回的用于之后请求的Header中的
"authorization" =token_type+" "+access_token