Comments
-
Hi Robert, our normal recommendation is to use the platform specific SDK for each platform, as available. So, that would be SwiftyDropbox for Swift (and the forthcoming Objective-C library for Objective-C. ETA August), the .NET SDK for Windows, the Java SDK for Android, etc. If you need to support all of these though, that…
-
Yes, you should use that parameter for downloading from shared links. It's documented in this help center article: https://www.dropbox.com/help/201
-
That error can occur in some cases, in which case the response status code will be 503. If the response status code is non-200, you should consider the upload failed. This error generally indicates that there was simultaneous activity in the account preventing your app from making the state-modifying call (e.g., adding or…
-
A 403 error with an HTML body is unexpected when using the API. Can you share some sample code that reproduces this? Thanks in advance!
-
Yes, you can use /files/get_temporary_link to get a temporary direct link to a file: https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link In the API v2 Java SDK, that's the getTemporaryLink method:…
-
No, the API doesn't offer a way to do this server-side, but I'll be sure to pass this along as a feature request.
-
You can find the implementation of DropboxClientFactory here: https://github.com/dropbox/dropbox-sdk-java/blob/f43597140fd8349c76f4e76e868d5846f0d3942b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java It looks like it does only create the client when sDbxClient == null, so you may…
-
Thanks, I can't seem to reproduce that behavior though. Perhaps you can add some logging and then share the log showing the issue? Since this requires checking the access token though, you may want to register an app folder app, or an extra account, so that you can share the log without leaking anything sensitive. (You can…
-
Your additional code throws away the old stored access token, but it doesn't show how/when you send the user back through the auth flow. Also, I can't reproduce the error once I authorize the app again and get a new access token. Are you sure you're not just using the old access token left in memory?
-
Hi Holger, that error should only occur if the API call was made with an invalid or revoked access token. Are you sure you're using a new and valid one? If so, can you share the modified code you're using? Thanks in advance!
-
What library, are you using, if any? For example, if you're using the Dropbox API v1 Android library, you can use the shares method to get a shared link to a file or folder: https://www.dropboxstatic.com/static/developers/dropbox-android-sdk-1.6.3-docs/com/dropbox/client2/DropboxAPI.html#share(java.lang.String) I don't…
-
Hi Dan, I'm glad to hear you sorted this out already. By default, these shared links do return preview pages, but you can modify them, as you found. You can find more information here: https://www.dropbox.com/help/201
-
This should be fixed in version 2.1.0. Please try it out and let us know if you're still seeing any issues.
-
No, just the string "rev:a1c10ce0dd78" is sufficient to identify both the file and revision, so that's all you should supply.
-
Apologies that isn't better documented! You would specify a rev in the path parameter like this: "rev:a1c10ce0dd78". That is, the string "rev:", followed by the rev value for the file and version you want.
-
That endpoint is part of API v1, so it would be shut down with v1. (Unfortunately it's not trivial to migrate it to API v2, since it by definition uses OAuth 1, which API v2 doesn't support.) So for now, we recommend using that endpoint and performing the migration before v1 is retired. We'll be keeping an eye on this and…
-
Hi Mark, are your existing access tokens OAuth 1 access tokens, or OAuth 2 access tokens? OAuth 1 access tokens have two pieces, a key and a secret. OAuth 2 access tokens are just one long string. API v2 only uses OAuth 2, so if you have OAuth 1 access tokens, you'll need to migrate to OAuth 2 first. You can do so…
-
No, the API doesn't provide a way for controlling that, but you can parse the URL and change it on the client-side. There's information about these parameters here: https://www.dropbox.com/help/201
-
What is the the SharedLinkMetadata.LinkPermissions.ResolvedVisibility on the resulting link metadata (your slm variable)? It can be different than the requested visibility, per the documentation: "The current visibility of the link after considering the shared links policies of the the team (in case the link's owner is…
-
You can use createSharedLinkWithSettings to get a shared link for a file or folder.
-
You can see the error message in the "Result" line. It indicates that you need to supply the parameters in the "Dropbox-API-Arg" header, or "arg" URL parameter. You can find more information on how to use this endpoint, along with an example using curl, in the documentation:…
-
[Cross-linking for reference: https://stackoverflow.com/questions/38122113/how-to-upload-files-in-dropbox-api-v2-c-sharp-using-nemiro-oauth ] What is the body of the response? It should contain more helpful error information.
-
They can use the button to "Show deleted files" on the Dropbox web site, which will show the file at the old path. They can then get the file history from there.
-
Hi Avnish, I'm not sure I understand your question. This thread was about file history when using the Dropbox API. Are you also working on an integration with the Dropbox API? If so, please share some more information, e.g., steps to reproduce the issue, sample code, etc. If you're not a developer using the Dropbox API,…
-
File history on Dropbox is tied to the file path, so file version history won't follow files across moves/renames like this. The version history at the original path isn't lost though, so you can continue to query on the original path to get the old history. You can use the file's ID to track it across moves/renames though.
-
To follow up here, the official Objective-C SDK for the Dropbox API v2 does now support OS X/macOS.
-
Dennis, please go ahead open a new thread with the full output so we can look into it and help. Thanks in advance!
-
zulfi, we currently only have general migration guide, and not a guide specific to that set of SDKs, but I'll be sure to pass this along as a feature request. I'll send this along as a request though.
-
Dennis, SwiftyDropbox now supports Swift 3 and OS X.
-
Hi Robert, we haven't updated that page yet (we'll be doing so shortly) but all of the information is on the SDK's page on GitHub that Stephen linked to: https://github.com/dropbox/dropbox-sdk-obj-c