cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: How to unlink dropbox from my app programaticaly?

How to unlink dropbox from my app programaticaly?

android_dev
Explorer | Level 4

with API 1 I did this:

 

    dropboxApi.getSession().unlink();

 

What is the equivelant of that in API 2?

1 Reply 1

Greg-DB
Dropbox Staff

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:

 

https://github.com/dropbox/dropbox-sdk-java/issues/92

Need more support?