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
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
User | Count |
---|---|
56 | |
27 | |
25 | |
23 | |
21 |