OAuth - woyong/docs GitHub Wiki
POST /oauth2/access_token
请求参数
参数名 | 类型 | 描述 |
---|---|---|
client_id | string | required. 客户端id |
client_secret | string | required. 客户端secret |
grant_type | string | required. password |
username | string | required. 用户名 |
password | string | required. 密码 |
Response
{
"access_token":"", #身份验证token
"token_type":"Bearer",#token类型
"expires_in":2591999, #token有效时间
"scope":"read"
}
说明: client_id=1c9ffe11bcd58be38daf & client_secret=dc45f8768c4e8bd795562a92481d79013a96aa1d