We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Vineeth1
3 years agoNew member | Level 2
Is it possible to automate getting the access code?
I tried using selenium to automate but I keep getting captcha which I cant get past it Is there any way of getting past that
Vineeth1
3 years agoNew member | Level 2
curl https://api.dropbox.com/oauth2/token \
-d code=AUTHORIZATIONCODEHERE \
-d grant_type=authorization_code \
-u APPKEYHERE:APPSECRETHEREI tried using this to getting refresh token using this. The json doesnt contain refresh code in it. Is there any settings I need to change
DB-Des
Dropbox Community Moderator
3 years ago
As Здравко mentioned, you'll need to make sure that token_access_type=offline is included in your request to /oauth2/authorize
https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&token_access_type=offline&response_type=code
Once that is successful, you should see a refresh_token in the response.
Feel free to reference our OAuth guide for details on refresh tokens.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!