Refresh Token

Last Updated on : 2024-03-22 06:50:37download

Each OAuth token is valid for two hours. After expiration, you need to use refresh_token to replace the previous token

API address

GET: /v1.0/token/{refresh_token}

Request parameter

Parameter nameTypeINRequiredDescription
refresh_tokenStringuritrueRefresh Token

Return parameter

Parameter nameTypeDescription
resultTokenResResult description

Description of result

Parameter nameTypeDescription
access_tokenStringAccess Token
expire_timeIntegerValid time, unit: seconds
refresh_tokenStringRefresh Token
uidStringUser ID

Request example

GET: /v1.0/token/xxxxxx

Return example

{
    "expire_time": 7200,
    "access_token": "38fea0afc52b4b94dfd8225c89e9****",
    "refresh_token": "45b427a91b12903940d7904ecb8e****",
    "uid": "bay1597986816998****"
}

Error code

For more information, see error code.