Refresh token
Gets a new token based on the refresh token
- Parameters
- Advanced call ?
Function RefreshToken(Val AppKey, Val AppSecret, Val RefreshToken) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| AppKey | --appkey | String | ✔ | Application key |
| AppSecret | --appsecret | String | ✔ | Application secret |
| RefreshToken | --refresh | String | ✔ | Refresh token |
Returns
Map Of KeyAndValue - serialized JSON response from Dropbox
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
AppKey = "oynqxds...";
AppSecret = "tk2oewn...";
RefreshToken = "oZFWg3DmZ_IAAAAAAAAAAWilOA0M1SjV...";
Result = OPI_Dropbox.RefreshToken(AppKey, AppSecret, RefreshToken);
- Bash
- CMD/Bat
oint dropbox RefreshToken \
--appkey "***" \
--appsecret "***" \
--refresh "***"
oint dropbox RefreshToken ^
--appkey "***" ^
--appsecret "***" ^
--refresh "***"
Result
{
"access_token": "sl.B2M8yVLTS_ojO3UsFs2tRlXxkFh50RLOkroi3SLCwcjA2xX58JY__GXKh9vPGnGcfDkkTJJYB1Wn9tFvj6cRs3w04TnfaBQnJiOfUb58UHexTCAdck9xNFIBAQjuAQKUtkoht66bvsu4oh6Wl6gQpvU",
"token_type": "bearer",
"expires_in": 14400
}