Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Peter K.23
11 years agoNew member | Level 1
Auto authorize with Java client or Mule ESB component
Is there anyway to provide authorization automatically ? The usefulness of providing an API to interact with the data store in Dropbox and requiring a manual authorization is zero.
Steve M.
Dropbox Staff
11 years agoThe exception is correct... you're trying to reuse an authorization code that's already been used. An authorization code can only be used once (and within a limited time period).
What you need to do is reuse the access token.
Once you have an access token, your code can just be this:
DbxClient client = new DbxClient(config, "<YOUR ACCESS TOKEN HERE>");
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!