Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
luigia
5 years agoExplorer | Level 4
Token and Permission Updates
Hi,
I receive the mail from dbx about "Token and Permission Updates" to explain me that the Dropbox OAuth flow will no longer return long-lived access tokens. I'm using the lib
<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>3.1.1</version>
I see now there is 3.1.5 version, so I will update it for sure.
In my flow, I call the
/oauth2/authorize
then
/oauth2/token
and
/2/users/get_current_account using the access token returned by the previous call.
So, now this is a long-lived access token, but from sep this will be a short-lived access token, is it right?
What should I do? Should I check the expiration time of this access token, and then ask which api for having the long-lived one?
Or should I recall /oauth2/token every time?
Is there some example I can see ?
thanks a lot
The SDK will do most of the work for you, so I recommend following the SDK examples. You can find the examples of using the authorization flow in the latest version of the Java SDK here. Or if you're building an Android app, there's an example for Android here.
1 Reply
- Greg-DB5 years ago
Dropbox Community Moderator
The SDK will do most of the work for you, so I recommend following the SDK examples. You can find the examples of using the authorization flow in the latest version of the Java SDK here. Or if you're building an Android app, there's an example for Android 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!