Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
William M.46
10 years agoExplorer | Level 3
Verifying using V2 only
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
- William M.4610 years agoExplorer | 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.1410 years ago
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.410 years agoNew 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/tokeni 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-DB10 years ago
Dropbox Community Moderator
Hi Eugene, it looks like you also posted this in a new thread, so I'll follow up there.
About 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!