

| 参数名 | 必传 | 说明 | 备注 |
|---|---|---|---|
| client_id | true | string | 申请应用时分配的client_id |
| client_secret | true | string | 申请应用时分配的secret |
| grant_type | true | string | 请求的类型,此处的值固定为”authorization_code” |
| code | true | string | 授权拿到的code值 |
| 参数名 | 必传 | 说明 | 备注 |
|---|---|---|---|
| refresh_token | true | string | refresh_token续期令牌 |
| access_token | true | string | access_token |
| expires_in | true | int | 过期时间(UTC时间) |
| scopes | true | []string | 用户已授权的权限点 |
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"access_token": "d30bedaa4d8eb3128cf35ddc1030e27d",
"expires_in": 1630220614,
"refresh_token": "WxFDKwqScZIQDm4iWmKDvetyFugM6HkX",
"scopes": [
"USER_INFO",
"ATC_DATA",
"ATC_BASE"
]
}
}