Refresh Token

Last Updated on : 2023-06-15 04:54:20

This topic describes the APIs of Refresh Token.

API description

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 name Type IN Required Description
refresh_token String uri true Refresh Token

Return parameter

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

Request example

GET: /v1.0/token/xxxxxx

Return example

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

Error code

See Error code.