Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

sianis's avatar
sianis
Explorer | Level 3
9 years ago
Solved

Andorid SDK uses deprecated API

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?

  • 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.

4 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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).

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    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's avatar
    Sekali
    Explorer | Level 4
    6 years ago

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

About Dropbox API Support & Feedback

Node avatar for 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!