Comments
-
1. Yes, you're definitely on the right track here, and your description sounds right. There are a few extra pieces of functionality that you may want to be aware of too. First, while "rev" identifies a particular revision of a file, the Dropbox API also offers a "content hash" which is directly indicative of the actual…
-
To list the contents of a folder, you should use /2/files/list_folder[/continue]. You can use that to list the contents of a folder in the connected account, or to list the contents of a folder for which you have a shared link (by setting the 'shared_link' parameter on the /2/files/list_folder call). To move files from one…
-
You do not need to get a different app key for each account. As the developer, you only need to register your app once, at which point you'll receive an app key for the app. The app key only identifies the app, and does not enable access to any particular account. You can use the one app key in your app to allow multiple…
-
Yes, the Dropbox API does have a rate limiting system. (That's not what's happening here though. If an app hits the rate limit, the Dropbox API would reply with a 429 error status, not a 500.) Anyway, we'll try to look into this based on the timestamps, but please do share the request IDs if possible. Thanks!
-
A 500 server error should indicate the call failed because of an issue on the Dropbox servers. Can you share a few sample 'X-Dropbox-Request-Id' response header values for these failures? That should help us track it down. Thanks in advance!
-
1. We generally don't comment on future plans, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 2. Once you register a webhook URI for a Dropbox API app, Dropbox will send webhook notifications for changes in the accounts of all users connected to that app. For…
-
Paper docs can be shared with other users, whether or not the other users are on the same team as the owner. In the example you shared, the second account does have access to the Paper doc, which is owned by the first account. Also, I see you posted some personal information and (most of) an access token above, so I've…
-
To download a file directly from a connected account using the Dropbox API, you can use the /2/files/download endpoint. In the official Dropbox Java SDK, that's available the download methods. Or, to get a temporary direct link to a file, you can use /2/files/get_temporary_link, which is getTemporaryLink in the Java SDK.…
-
It is possible to use one app to connect to multiple different Dropbox accounts. For developing an Android app that uses the Dropbox API, we recommend using the official Dropbox Java SDK: https://github.com/dropbox/dropbox-sdk-java There's an example Android app here:…
-
First, for reference, whenever you get an error from the Dropbox API, be sure to print out the response body as it may contain a more useful error message. Anyway, unfortunately, the Dropbox API does not currently support getting a zip download of a subfolder based on the id of the subfolder returned from listing the…
-
@"SandroRibeiro" Thanks for the additional feedback!
-
No, Dropbox doesn't support the device flow, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
No, Dropbox still doesn't offer this flow.
-
Can your share your current code for that? I just modified your earlier code and it worked fine for me: DropboxTeamClient teamClient = new DropboxTeamClient(ACCESS_TOKEN); var results = await teamClient.Team.MembersListAsync(); string memberID = string.Empty; foreach (var member in results.Members) { if…
-
The AsMember method expects the "team member ID", which is the ID that starts with "dbmid:". Dropbox supplies these values directly, and you should not attempt to modify them. The team member ID is available as MemberProfile.TeamMemberId (not MemberProfile.AccountId).
-
This error message indicates that the access token you're using is for a "Dropbox Business API" app, which connects to entire Dropbox Business teams, but the method you're trying to use is for specific Dropbox accounts. If you want any kind of Dropbox account (Business or not) to be able to connect to your app, you should…
-
The Dropbox API doesn't expose a way to retrieve all events for a file/folder like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can use files_list_revisions to list the file versions for a particular file though.
-
@"raRaRa" Thanks for the additional feedback and context!
-
Unfortunately, Dropbox and the Dropbox API don't really offer something like this. Dropbox generally doesn't distinguish between the ability to add a new file and otherwise being able to write (e.g., update or delete) in its access controls. Some things that do come to mind as potential solutions though: * If the manager…
-
@"Lak1" We can't offer help with the "node-red-node-dropbox" module as that's made by a third party, but we'll be happy to help with the Dropbox functionality itself. I just gave this a try myself and it is working correctly for me. Here's some API commands and output showing: * uploading a file * creating a shared link…
-
I can't really help with memory management on your system or with configuring third party clients as they're not made by Dropbox. That said, if you want to use curl to save to a local file on your server's local filesytem, you may want to use the 'CURLOPT_FILE' option.
-
We don't have an official PHP SDK for Dropbox API v2, but another option is to use a third party library. We have some listed here: https://www.dropbox.com/developers/documentation/communitysdks I don't know which, if any, of those happen to implement /2/files/download_zip though.
-
I don't have a sample of calling /2/files/download_zip in PHP in particular to share. The documentation has an example of calling it using command line curl though. Likewise, the API v2 Explorer can build sample code for it in a few formats. You can use those as a reference to write your code on your platform using…
-
The sharing_create_shared_link_with_settings method will throw an exception if a shared link is already created for the specified path. You can catch that, and use CreateSharedLinkWithSettingsError.is_shared_link_already_exists to determine if that's the reason the call failed. If so, you can…
-
Yes, you can use an access token for a non-Business app to access Business accounts, including team folders. First, for reference, the "Unexpected select user header" error is expected if you attempt to set the "Dropbox-API-Select-User" header when using an access token for a non-Business app, as that functionality is only…
-
Can you elaborate on what you meant when you said "this doesn't work if my customer is using Business Dropbox Account"? You should certainly be able to use the particular methods you listed with both Business or non-Business accounts. You don't need to register separate apps in that case. A single "Dropbox API" app can be…
-
You can use /2/files/list_folder/get_latest_cursor if that works for your use case. Keep in mind though that there is a race condition if you do so, with the possibility that you will miss some changes. That is, if something changes after your last successful update from /2/files/list_folder/continue and before your call…
-
Thanks for the report. We'll need to look into this specifically for you. Please open a ticket here with the details: https://www.dropbox.com/developers/contact Please include: * the account ID(s) of the affected account(s) * a sample request/response for a search call that isn't returning what you expect (please include…
-
Yes, Dropbox does localize the "Apps" folder name depending on the locale set on a user's account. Dropbox does not offer official documentation with the full list of the localizations for reference unfortunately, but I'll pass this along as a feature request. I can't promise if or when that might be documented though.
-
@"Sukanth" Thanks! We'll look into it and follow up with you there.