https://api.sciener.com/oauth2/token
When access token expired, you can refresh it by this api, the refresh_token is returned by Get Access Token, the valid period of refresh token is 10 years since it's created.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/oauth2/token' \--header 'Content-Type: application/x-www-form-urlencoded' \--data-urlencode 'clientId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \--data-urlencode 'clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \--data-urlencode 'grant_type=refresh_token' \--data-urlencode 'refresh_token=1bd2a21a7df889630f444364813738d7' | Name | Required | Parameter value | Description |
|---|---|---|---|
| clientId | Y | clientId from Create application | |
| clientSecret | Y | clientSecret from Create application | |
| grant_type | Y | refresh_token | grant type, value: refresh_token |
| refresh_token | Y | refresh token |
| Name | Type | Request parameters |
|---|---|---|
| access_token | String | Access token |
| expires_in | Int | Expire time of access token, in second. |
| refresh_token | String | Refresh token |
xxxxxxxxxx{"access_token": "39caac89b0b51c980aa61ad4264b693b","refresh_token": "1bd2a21a7df889630f444364813738d7","expires_in": 7776000}