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: Andorid SDK uses deprecated API

Andorid SDK uses deprecated API

sianis
Explorer | Level 3
Go to solution

https://github.com/dropbox/dropbox-sdk-java Andorid SDK uses still v1 API. It shows warning when I try to login from application. It opens https://www.dropbox.com/1/connect?k=XXX when I call  Auth.startOAuth2Authentication. What is the solution for this? Do I need to implement other way, or will the developers implement it into the Dropbox SDK?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

@Sekali I'm not sure I understand your message. If you're using an official SDK, such as the Java SDK, you should use the latest version, as released and documented. You do not need to make any modifications to it. It may use some different internal mechanisms, but the latest versions already use API v2.

 

If you are not using an SDK, you should implement the OAuth flow as documented.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution

The Java SDK does already use API v2. That authorization page URL has /1/ in it for historical reasons, but it's not actually used for API v1 only. As long as you're using the latest version of that SDK and following the instructions in the readme you're using API v2 and don't need to do anything differently. (Make sure you're using a version of the SDK >1.8.2.)

 

If you're seeing a warning on the authorization page about the API v1 deprecation, it's because you previously used API v1 but didn't acknowledge the deprecation. You can do so from the App Console while signed in to the account that owns the app(s).

Sekali
Explorer | Level 4
Go to solution

thanks . Your means use the demo ,web pages shows like https://www.dropbox.com/1/connect, but it already support v2 endport ? Just like request url like https://www.dropbox.com/oauth2/authorize? so it looks like a shell?

Greg-DB
Dropbox Staff
Go to solution

@Sekali I'm not sure I understand your message. If you're using an official SDK, such as the Java SDK, you should use the latest version, as released and documented. You do not need to make any modifications to it. It may use some different internal mechanisms, but the latest versions already use API v2.

 

If you are not using an SDK, you should implement the OAuth flow as documented.

Sekali
Explorer | Level 4
Go to solution

thanks , I solved it . I look for  oauth and use it.

Need more support?