Skip to main content

Refresh token

Gets a new token based on the refresh token

Function RefreshToken(Val AppKey, Val AppSecret, Val RefreshToken) Export

ParameterCLI optionTypeDescription
AppKey--appkeyStringApplication key
AppSecret--appsecretStringApplication secret
RefreshToken--refreshStringRefresh token

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


Code example
  AppKey = "oynqxds...";
AppSecret = "tk2oewn...";
RefreshToken = "oZFWg3DmZ_IAAAAAAAAAAWilOA0M1SjV...";

Result = OPI_Dropbox.RefreshToken(AppKey, AppSecret, RefreshToken);
CLI command example
    
oint dropbox RefreshToken --appkey "oynqxds..." --appsecret "tk2oewn..." --refresh "oZFWg3DmZ_IAAAAAAAAAAWilOA0M1SjV..."

Result
{
"access_token": "sl.B2M8yVLTS_ojO3UsFs2tRlXxkFh50RLOkroi3SLCwcjA2xX58JY__GXKh9vPGnGcfDkkTJJYB1Wn9tFvj6cRs3w04TnfaBQnJiOfUb58UHexTCAdck9xNFIBAQjuAQKUtkoht66bvsu4oh6Wl6gQpvU",
"token_type": "bearer",
"expires_in": 14400
}