We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
helloBichya
2 years agoExplorer | Level 4
refresh token is malformed
I am trying to generate new access token using app_key, app_secret and refresh_token obtained using the following url.
https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&token_access_...
- 2 years ago
Thanks for following up and sharing your code. I'm glad to hear you got this sorted out.
To confirm, the refresh token is not the value returned by www.dropbox.com/oauth2/authorize... itself. Using www.dropbox.com/oauth2/authorize with 'response_type=code' gives an 'authorization code' (sometimes also called 'access code').
The refreshToken value should be the 'refresh_token' returned by /oauth2/token when you called /oauth2/token with 'grant_type=authorization_code'. That's different from the 'access token' as well as the 'authorization code'; the three are not interchangeable.
For anyone looking for more information, refer to the following resources for information on how to use the app authorization flow:
Greg-DB
2 years agoDropbox Staff
Thanks for following up and sharing your code. I'm glad to hear you got this sorted out.
To confirm, the refresh token is not the value returned by www.dropbox.com/oauth2/authorize... itself. Using www.dropbox.com/oauth2/authorize with 'response_type=code' gives an 'authorization code' (sometimes also called 'access code').
The refreshToken value should be the 'refresh_token' returned by /oauth2/token when you called /oauth2/token with 'grant_type=authorization_code'. That's different from the 'access token' as well as the 'authorization code'; the three are not interchangeable.
For anyone looking for more information, refer to the following resources for information on how to use the app authorization flow:
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 5 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!