Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Get fresh Access Code from Dropbox using download tool from Alteryx

Ramirezphl
5 - Atom

I wanted to create a macro that generate fresh/not expired token from dropbox. Currently i'm using "https://api.dropboxapi.com/oauth2/token" as URL and Grant_type, code, Client_ID and Client secret for the Payload. it's working but when you run it twice you'll get and error "{"error": "invalid_grant", "error_description": "code doesn't exist or has expired"}". is there any other way to generate fresh access code from dropbox? i'm thinking i can append it to my text input and run it sa payload. Thanks

1 REPLY 1
milos_bijelic
Alteryx
Alteryx

Hey @Ramirezphl ,

 

I'd recommend using a refresh token. When using refresh tokens, you'll need to call the /oauth2/token endpoint with the grant_type of authorization_code. This will return a short-lived access token and a refresh token.

 

To update the access token, call the /oauth2/token endpoint - specifying your refresh_token as a pararmeter using the grant_type of refresh_token 

 

For more info you can refer to Dropboxes OAuth2 Guide

Labels
Top Solution Authors