Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sanjeev_hansanur1
4 years agoExplorer | Level 4
how to get access token using refresh token in java
I have refresh token(constant), need to know how to obtain access token using refresh token in java
Need sample code to test
Здравко
4 years agoLegendary | Level 20
There are some examples where you can select from to test or get idea. You don't need access token directly since Dropbox Java SDK takes care about it. To create client object you need to create DbxCredential object (for accessToken set some arbitrary string and for expiresAt set zero). Depending on selected OAuth method (when you got your refresh token) you may need other DbxCredential constructor to success (appSecret in addition). At the end create a DbxClientV2 object and use it as you want to. 😉 That's it.
Hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!