Comments
-
By default, the thumbnail data returned by /2/files/get_thumbnail is jpeg. (You can choose between jpg and png using the "format" parameter.) And no, unfortunately we don't have any sort of batch thumbnail call, but I'll be sure to pass this along as a feature request.
-
HI Matthew, the endpoints you mentioned are the right ways to list files and get thumbnails, respectively. Can you elaborate on what you mean when you say you "get only cryptic output"? If the endpoint replies with a successful status code (200), the body will be the raw data for the thumbnail directly. You can then use…
-
Hi Neha, can you share the code where you're building your restClient? This error indicates that the API call didn't include the necessary authorization (e.g., an access token for a user). Also, although this is a different issue, if you're using an app folder app, you don't need to include the app folder name in your…
-
Thanks for the feedback! That's the only user method that is restricted to Business apps. I'll send this along as a feature request to make this available to non-Business apps though.
-
Hi Dan, the permanentlyDelete method you mentioned is the right method for permanently deleting files. Have you tried using it and run in to any issues? If so, please share the error you're getting if you're still having trouble. Note that per the documentation though, it's only available to Dropbox for Business apps. You…
-
FileMetadata doesn't contain the ID for its parent(s), so you'll have to query the parent folder(s) to get the ID(s) if you need them. E.g., use GetMetadata or ListFolder to get the FolderMetadata as desired.
-
There are two scenarios I'm aware of that can cause this: 1) X-UA-Compatible setting mismatch: If the X-UA-Compatible value set by your site doesn't match the Chooser, this can cause the communication issue. 2) Security level mismatch: If your site and the Dropbox site are in different security levels, this can also cause…
-
Hi Dan, you can use the delete method in DbxUserFilesRequests. For example: Metadata metadata = client.files().delete(path); Hope this helps!
-
Dropbox does offer an API that enables programmatic listing, uploading, downloading, and sharing of files, so this is possible. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here. You'll need to register an app here. App authorization is processed using…
-
Yes, the functionality in your screenshot is an extension provided by the official Dropbox for iOS app. You can display that sheet using UIActivityViewController, without registering an app for the Dropbox API.
-
I believe the change rolled out on Monday, the 6th.
-
Thanks for the report Vasanth, and apologies for the trouble! It looks like there was a recent change to our routing system that changed the handling for calls with an extra trailing slash like this. We of course never intend to release breaking changes without notifying developers. The API v2 routes are documented without…
-
1. I can't make any promises, but I'm sending this along as a feature for official/documented support for thumbnails for images larger than 20 MB like this. 2. This isn't related to API v1 exactly. (API v1 also only officially supports thumbnails for images less than 20 MB.) We have been working on improving our…
-
Thanks for the feedback! I've sent it along to the team.
-
We'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the name and version of the platform and SDK/library you are using, if any - the full text of the error/any output - the relevant code snippet(s)
-
The API doesn't offer ModifiedBy for the folder itself, but I'll be sure to pass this along as a feature request.
-
It sounds like you're looking for FileMetadata.SharingInfo.ModifiedBy. Hope this helps!
-
Hi Eric, no, the API doesn't distinguish between files and folders in DeletedMetadata, but I'll be sure to pass this along as a feature request.
-
Thanks Nathan! We'll take a look and reply there.
-
It looks like you already got this working. For reference, the /move endpoint lets you move items, be it files or folders. Both the to_path and from_path must specify the full, exact path of the existing item and the new desired path, respectively. If you wanted to move an entire folder, which is currently at /folder1, to…
-
Dropbox API access tokens don't expire. Users can manually revoke tokens themselves though, e.g. via: https://www.dropbox.com/account/security Apps can also revoke access tokens via: v1: https://www.dropbox.com/developers/core/docs#disable-token…
-
For example, I'm not an Objective-C expert, but something like this (modified from your previous code sample): MPOAuthCredentialConcreteStore *creds = [[DBSession sharedSession] credentialStoreForUserId:UID]; NSString *authorization = [NSString stringWithFormat:@"OAuth oauth_version=\"1.0\",…
-
That error message indicates you're still passing up the access token like an OAuth 2 access token (using the "Bearer" syntax), but if you have an OAuth 1 access token, you need to use the OAuth 1 syntax from the blog post I linked to.
-
Unfortunately, I don't have a sample implementation of this endpoint in Objective C to share. Note that the iOS SDK itself uses OAuth 1, so the stored access token from credentialStoreForUserId can't be directly used as an OAuth 2 access token, which is why you're getting that "Invalid OAuth2 token" error. If you do want…
-
What's the value of dropboxPath? Are you sure that "<Acess Token>" is linked to the same app and account as pMainDelegate.restClient?
-
Unfortunately I don't have any sample code for implementing this endpoint in Objective-C. If you try it and run in to any issues though, feel free to share your code and we'll offer whatever help we can.
-
Do you mean the iOS Core SDK? That uses API v1, which does have an equivalent endpoint: https://www.dropbox.com/developers-v1/core/docs#previews Unfortunately, that's not implemented in the iOS Core SDK, and we don't have any sample code for doing it. That being the case, you would need to implement it in your app's code.
-
Are you using a particular SDK or library, or are you calling the HTTPS endpoints directly?
-
The v1 /metadata/link endpoint does return the contents for a shared link for a folder: https://www.dropbox.com/developers-v1/core/docs#metadata-link This isn't implemented in the Python SDK, but you can call the endpoint directly.
-
Unfortunately, API v2 doesn't currently offer the ability to list out the contents of a shared link for a folder, but I'll be sure to pass this along as a feature request.