cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: Verifying using V2 only

Verifying using V2 only

William M.46
Explorer | Level 3

I'm not very impressed by the Dropbox v1 Deprecation Guide, as it seems to expect us to be experts on Dropbox rather than developers of actual functionality that learned just enough about Dropbox to get it working.

So is there a setting somewhere that will allow me to test against a v2-only environment?  i.e. can I set my account to only allow v2 right now, see if it all works, and then reset to v1 to work out the kinks?

Part of my challenge is that the v1 deprecation focuses on REST endpoints.  I don't us any REST endpoints.  Not a single one.  I used Dropbox Core API, in Android.  But the Endpoint v1 -> v2 Mapping only lists REST endpoints.

Does this mean that the Core API itself is completely gone and I must migrate to a REST API entirely?  And where do I download the Android library files from?

4 Replies 4

William M.46
Explorer | Level 3

BTW, if that is the case, you really should update all the Core API documentation to include that those classes and methods are deprecated.  

Stephen C.14
Dropbox Staff

I'm sorry that the Deprecation Guide was not more helpful to you. The Guide is not meant to totally comprehensive, platform-specific migration guide, but is instead intended to give you a qualitative sense of how API v2 differs from API v1.

To answer your question, there is no easy way to toggle seamlessly between API v1 and API v2. Each version has an entirely separate set of endpoints that are queried by entirely separate SDKs. The Android SDK that you're currently using with your app, which queries v1 endpoints, will need to be entirely swapped out with an SDK that queries v2 endpoints.

The code in your app that interfaces with the v1 Android SDK will also need to change as well. Fortunately, the mapping between v1 and v2 endpoints is relatively tight and straightforward, so in most cases, the refactoring should not require significant overhaul to your codebase.

To upgrade your app to integrate with the new v2 Java SDK, you will want to follow this tutorial: https://www.dropbox.com/developers/documentation/java#tutorial.

For complete documentation for the v2 Java SDK, you can check out: https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/.

Please reach out if you run into issues or need additional clarification.

Eugene G.4
New member | Level 1

Hi.

It might be a little off topic, but i've bumped into this issue migrating from v1 to v2:

after getting the auth code from this endpoint:

https://www.dropbox.com/oauth2/authorize

and getting the token from this endpoint:
https://api.dropbox.com/oauth2/token

i am trying to get user's display name. as far as i understand you've changed user endpoint to this one:

https://api.dropboxapi.com/2/users/get_current_account

but all i get from api is this:

{protocol=http/1.1, code=400, message=Bad Request, url=https://api.dropboxapi.com/2/users/get_current_account}

Please give me hints if you have any.

Greg-DB
Dropbox Staff

Hi Eugene, it looks like you also posted this in a new thread, so I'll follow up there.

Need more support?