You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Patrik H.'s avatar
Patrik H.
Explorer | Level 4
8 years ago

How to ensure no use of API v1?

I am working on updating a macOS app to migrate from API v1 to API v2, ahead of the upcoming deadline. I'd like to ensure that the app does not, in any way, still contact v1 endpoints (that is, any endpoints that are going to be shut down soon). Is there an easy way to do this?

 

I was hoping that the Dropbox App Console would make it possible to select a setting where a given app would no longer allow the v1 endpoints, effectively simulating the shutdown which is going to occur for real, and for all apps, soon. I could not find any such setting.

 

(Note: I am not using the official API v2 SDK.)

 

Patrik

  • If you're not using an official SDK, the easiest way to check what version of the API you're calling is to check the URLs you're calling. API v1 endpoints contain "/1/", while API v2 endpoints contain "/2/".

    (Note that some OAuth URLs also contain "/1/" for historical reasons, but those aren't considered part of API v1 itself.)

    If you aren't sure though, feel free to open a ticket and we can help further:

    https://www.dropbox.com/developers/contact
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    If you're not using an official SDK, the easiest way to check what version of the API you're calling is to check the URLs you're calling. API v1 endpoints contain "/1/", while API v2 endpoints contain "/2/".

    (Note that some OAuth URLs also contain "/1/" for historical reasons, but those aren't considered part of API v1 itself.)

    If you aren't sure though, feel free to open a ticket and we can help further:

    https://www.dropbox.com/developers/contact
    • Patrik H.'s avatar
      Patrik H.
      Explorer | Level 4
      Thanks for the quick reply!

      Based on your answer, I take it that the OAuth URLs which contain "/1/" will NOT be shut down... please correct me if I have misunderstood this.
      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        Yes, that's correct, for OAuth 2 at least. (API v2 doesn't support OAuth 1 so I expect it will make sense to shut down the OAuth 1 endpoints along with API v1 itself.)