Dim data As Map
data.Initialize
data.Put("grant_type", "refresh_token")
data.Put("refresh_token", "<REFRESH TOKEN>")
data.Put("client_id", "<APP_KEY>")
data.Put("client_secret", "<APP_SECRET>")
Dim j As HttpJob
j.Initialize("", Me)
j.PostString("https://api.dropbox.com/oauth2/token",data.As(JSON).ToString)
j.GetRequest.SetContentType("application/json")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
Else
Log(j.ErrorMessage)
End If
j.Release