Last Updated on : 2023-06-15 04:54:20
This topic describes the APIs of Refresh Token.
Each OAuth token is valid for two hours. After expiration, you need to use refresh_token to replace the previous token
GET: /v1.0/token/{refresh_token}
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
refresh_token | String | uri | true | Refresh Token |
Parameter name | Type | Description |
---|---|---|
result | TokenRes | Result description |
Description of result
Parameter name | Type | Description |
---|---|---|
access_token | String | Access Token |
expire_time | Integer | Valid time, unit: seconds |
refresh_token | String | Refresh Token |
uid | String | User ID |
GET: /v1.0/token/xxxxxx
{
"expire_time": 7200,
"access_token": "38fea0afc52b4b94dfd8225c89e9****",
"refresh_token": "45b427a91b12903940d7904ecb8e****",
"uid": "bay1597986816998****"
}
See Error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback