Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi there,
When running my Android app I now get the error message that v1 is depricated when executing getFileStream.
Error: "DropboxServerException (nginx): 400 Bad Request (v1_retired)"
Unfortunetely I can not get my head around a possible migration or fix.
I do not seem to use any of the things mentioned in the migration guide.
The examples all use completely different ways to implement the authentication procedure.
Do I have to install a new SDK?
Do I have to change the way I authenticate?
Or do I have to change the call to the API.
The authentication seems ok, as I get a DropboxApi object.
Any help is appreciated.
API v2 does offer a different interface than API v1, so you will need to update your SDK and code.
For Android, we recommend using the official Dropbox API v2 Java SDK:
https://github.com/dropbox/dropbox-sdk-java
There's an example Android app here:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
Your AndroidManifest.xml should be set up as shown here:
You start the flow by calling startOAuth2Authentication as shown here:
You complete the flow by calling getOAuth2Token as shown here:
Your app can store and re-use the resulting access token for that user, as the example does here:
Once you have an access token, you can make a client as shown here:
With a client, you can make whatever calls you want, as shown in the readme and examples:
https://github.com/dropbox/dropbox-sdk-java/blob/master/ReadMe.md#try-some-api-requests
There's an example of downloading here:
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s):
API v2 does offer a different interface than API v1, so you will need to update your SDK and code.
For Android, we recommend using the official Dropbox API v2 Java SDK:
https://github.com/dropbox/dropbox-sdk-java
There's an example Android app here:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
Your AndroidManifest.xml should be set up as shown here:
You start the flow by calling startOAuth2Authentication as shown here:
You complete the flow by calling getOAuth2Token as shown here:
Your app can store and re-use the resulting access token for that user, as the example does here:
Once you have an access token, you can make a client as shown here:
With a client, you can make whatever calls you want, as shown in the readme and examples:
https://github.com/dropbox/dropbox-sdk-java/blob/master/ReadMe.md#try-some-api-requests
There's an example of downloading here:
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s):
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!