Is there any workaround for this? The cURL is:
Code: Select all
curl https://api.dropbox.com/oauth2/token \ -d grant_type=refresh_token \ -d refresh_token=<REFRESH_TOKEN> \ -u <APP_KEY>:<APP_SECRET>
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
curl https://api.dropbox.com/oauth2/token \ -d grant_type=refresh_token \ -d refresh_token=<REFRESH_TOKEN> \ -u <APP_KEY>:<APP_SECRET>
Code: Select all
on mouseUp
put "XXXXX" into tAppKey
put "YYYYY" into tAppSecret
put "Authorization: Basic" && base64Encode(tAppKey & ":" & tAppSecret) into tHeaders
set the httpHeaders to tHeaders
put "https://api.dropbox.com/oauth2/token" into tUrl
post "grant_type=refresh_token&refresh_token=ZZZZZ" to tUrl
put it into tResponse
end mouseUp