Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
android_dev
8 years agoExplorer | Level 4
How to unlink dropbox from my app programaticaly?
with API 1 I did this:
dropboxApi.getSession().unlink();
What is the equivelant of that in API 2?
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
Assuming you're using the API v2 Java SDK, you should just throw away your client object. The API v2 Java SDK doesn't have the same "session" concept as the v1 SDK did.
The unlink method in the v1 SDK didn't revoke the token on the server, but if you do want to explicitly revoke the token on the server using the API v2 SDK, you would additionally use tokenRevoke before throwing it away.
There's a discussion here with some other details that may be relevant depending on your use case:
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!