Comments
-
Are you referring to the Android sample app included with the Dropbox API v2 Java SDK? That is what you should use as a reference when implementing this in your own Android app. What didn't work for you exactly? This works essentially the same way as the old v1 SDK. That is, your app should send the user through the OAuth…
-
@"drowles" It sounds like you're referring to using the Dropbox desktop client. This thread was about using a particular programmatic interface, not the Dropbox desktop client. For help with the desktop client, please post in the "Desktop app issues" forum, or contact support.
-
SwiftyDropbox uses Alamofire, and Alamofire should behave like NSURLSession, meaning it will not queue up the requests for you. So if you make 10 requests in a row, the will likely timeout if they are long requests. You can solve this by dispatching your requests to a queue, and maxing out the number of concurrent…
-
I believe Swift 3 got more strict with its generics, so DBDownloadUrlTask<AnyObject, AnyObject> should be equivalent to DBDownloadUrlTask. It's more explicit, but it should be fine.
-
Thanks for the additional information. That's helpful. I've sent this along to the team.
-
Hi Tim, the API v2 version of /1/metadata/link is /2/sharing/get_shared_link_metadata: https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata Unlink /1/metadata/link though, it doesn't return the file listing for links to folders. Do you need that functionality in particular?…
-
I just tried the Dropbox OAuth 2 flow in IE 11, and I didn't receive the extra '/', so it looks like this is being added on your app's side, presumably due to how to AngularJS works. AngularJS is made by a third party though, so I'm afraid I can't offer help with it. You may want to refer to the documentation for AngularJS…
-
This isn't available in API v2, and I don't have an update on this unfortunately. (Also, Rustam opened this thread and marked the post as a solution, so I believe he can unmark it if he wants to.)
-
Checking DBClientsManager authorizedClient is the equivalent in the API v2 SDK. The account is automatically persisted for you though, so the user won't have to manually authorize the app each time. If you want to remove the stored account(s), you can use unlinkAndResetClients or unlinkAndResetClient.
-
Although less common for the 'overwrite' mode, there are still some conflicts that can occur where the 'autorename' parameter will matter. For example, if you try to upload to a path where a folder (not a file) already exists, that will be considered a conflict and the folder (and its children) will not be overwritten. The…
-
Can you share the full error/output for the exception you mentioned? We can't offer much help with anything Xamarin-specific, but we'll be happy to take a look and see what's going on with the Dropbox side of things. Thanks in advance!
-
This is the expected behavior, per the API v2 /search documentation: "query String The string to search for. The search string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car")." Since you're only supplying one…
-
Thanks for the report! This should be fixed now. By the way, based on the version number of the SDK you mentioned (1.8) it sounds like you're using the Java Core SDK, which uses API v1. API v1 is deprecated, so you should migrate to the API v2 Java SDK.
-
The Chooser will continue working after API v1 is deprecated. The Chooser (and Saver) aren't considered part of either version of the Dropbox API, so you don't need to do anything if you're just using the Chooser (or Saver).
-
The Dropbox API doesn't offer a call to append data to an existing file, but I'll be sure to pass this along as a feature request. You'll need to upload the full contents of the new version of the file instead.
-
The documentation you quoted is referring to the format sent by the API in the HTTP response itself. That format is stable. When using the Java SDK, the responses are translated into native objects for you. For example, FileMetadata.getServerModified returns a Java Date object. The Java Date.toString method by default does…
-
The API doesn't expose this information, but I'll be sure to pass this along as a feature request.
-
The Java SDK does already use API v2. That authorization page URL has /1/ in it for historical reasons, but it's not actually used for API v1 only. As long as you're using the latest version of that SDK and following the instructions in the readme you're using API v2 and don't need to do anything differently. (Make sure…
-
It sounds like the closest thing the Dropbox API offers is the get_temporary_link endpoint: https://dropbox.github.io/dropbox-api-v2-explorer/#files_get_temporary_link You can call that to get a temporary link that expires in four hours, and you can call it multiple times to get different links. You can't add a password or…
-
Yes, if there have been any changes to the file, the rev will be different.
-
You should use the file's extension, e.g., from the 'name' or 'pathLower' property in the metadata, to check the type.
-
1. The filesGetThumbnail (and any other method that returns data in the response) makes the data available in the response's fileBlob property, if you're running in the browser, and fileBinary if you're running in node. So, for example, you can do this: dbx.filesGetThumbnail({path: remoteFilePath}) .then(function(response)…
-
The JavaScript SDK doesn't expose these directly. Instead, the information from the filesGetThumbnail response is translated into a JavaScript object for you. Likewise, the etag value is available as the "rev" metadata.
-
Thanks! We'll look into it. For our reference though, can you also share how you're constructing your client object?
-
Thanks! You don't need to include the app secret, but in any case you can submit it in an API ticket here: https://www.dropbox.com/developers/contact
-
Thanks for following up. I'm glad you got this sorted out already. And for reference, yes, in certain cases Dropbox will automatically redirect you through the OAuth flow if you've already authorized the app. It won't do so if you're using a localhost redirect URI. The information sent to the redirect URI don't change…
-
The Dropbox Business API v1, e.g., /1/team/members/list, only exposed a boolean attribute to indicate if a particular member is an admin, i.e., the is_admin you cited. The Dropbox Business API v2, e.g., /2/team/members/list, exposes more granular admin information, to match the new admin functionality available in…
-
Thanks for the feedback everyone! No, unfortunately there isn't a way to get these IDs or generate these links, but I'll be sure to pass this along as a feature request.
-
@"chuffy" It doesn't look like that's quite the same issue, so please do open a ticket: https://www.dropbox.com/developers/contact Thanks in advance!
-
What output are you getting? The HTTP response body from the API should contain either the metadata for the uploaded file, or an error indicating why the upload failed.