Greg-DB Dropbox Community Moderator

Comments

  • The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files (e.g., in their own app folder). It is technically possible to connect to just one account though. The SDKs don't offer explicit support for it and we don't usually recommend doing so, for…
  • That's correct, to access the "team space", you should use the "Dropbox-API-Path-Root" header as you mentioned. For more information on this, please refer to the Namespace Guide: https://www.dropbox.com/developers/reference/namespace-guide
  • Thanks for the feedback! I don't have an update on this feature request, but I'll be sure to add your message to it. Just to be clear though, while the Dropbox API doesn't offer a way to filter to folders on the server, but you can still programmatically list everything and apply that filtering client-side. To do so, you…
  • Great, thanks for confirming that. Yes, between Python 2 and Python 3 there appears to be a change in behavior that results in this issue when using a non-None timeout. We're looking into it, but for now that workaround is required to avoid this issue.
  • These links expire after four hours. It's not possible to manually expire them earlier than that. If you control the web server and the user is using a typical web browser/client, you can probably return a redirect to the temporary link itself. Exactly how you do so would depend on your web framework though.
  • For users on teams that are not using the "team space" configuration, their root_namespace_id and home_namespace_id will be identical. You can find more information in the Namespace Guide. To check whether a user is a member of a team at all, you should check the FullAccount.team value returned by…
  • It looks like you already got help with this on StackOverflow. As you found, whenever an API call fails, you should check the response body itself for a more detailed message. In this case, the error indicated that there were unexpected values in the request. Specifically, you were passing in incorrect types for the…
  • It is expected that you'll receive a webhook notification for changes in a shared folder for each member of that shared folder. There's a note about this here: https://www.dropbox.com/developers/documentation/http/teams#webhooks Are you receiving exact duplicate webhook notifications when a single new member is added…
  • To let the user download the file directly, you can instead use /2/files/get_temporary_link to get a link to the file, and pass the link to the client: https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link
  • Thanks for the report! This appears to be an issue when using the Dropbox Python SDK with Python 3. We're looking into it. As a workaround, please try setting an unlimited timeout when constructing your Dropbox client, like this: dropbox.Dropbox(TOKEN, timeout=None) Please let me know if that does or doesn't help.
  • If you want to upload files directly from the client, instead of going through your server, you can use the functionality provided by /2/files/get_temporary_upload_link: https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link The documentation there includes information on how to…
  • [Cross-linking for reference: https://stackoverflow.com/questions/52017573/get-a-list-of-dropbox-files-to-android-application ] You appear to be using the old SDK/code for Dropbox API v1, which is retired. You should use the latest version of the official Java SDK, which uses Dropbox API v2:…
  • The Dropbox API and JavaScript SDK do not offer native offline functionality unfortunately, but I'll pass this along as a feature request. In order to make a Dropbox API call, such as to upload files using /2/files/upload as you have in your code, the client does need an active Internet connection. We have an official…
  • Any access token for an app folder app for a particular app-user pair should have access to anything in the app folder for that app in that user's account. I can't say offhand why something may not be working as expected for you, so please feel free to open an API ticket with details and we'll be happy to check on it for…
  • To begin debugging this, I recommend: - Confirm that your $files1 value is correct. - Confirm that the file at that path is non-zero and that you have access to it. - Confirm that the 'fread' call is returning the non-zero data.
  • You can use the /2/users/get_space_usage endpoint to get the space information for the connected user: https://www.dropbox.com/developers/documentation/http/documentation#users-get_space_usage That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:…
  • That's more of a general C#/async programming design question, so I'm afraid I can't offer insight on that.
  • It sounds like the issue is that this is an async method, but you're not waiting for the result. I.e., you probably want to await your method call like this: await ProcessDropboxCallback(code);
  • You will get webhook notifications for any changes in the accounts of any/all users connected to your app. So, if you have multiple users connect to your app, and multiple users are in the same shared folder, you will receive multiple webhook notifications when something changes in that shared folder; one for each member…
  • That would look like this, for example: team_member_info = team_client.team_members_get_info([dropbox.team.UserSelectorArg.email(member_email_address)]).pop() if team_member_info and team_member_info.is_member_info(): team_member_id = team_member_info.get_member_info().profile.team_member_id
  • No, unfortunately we don't offer a way to display Showcase on other web sites like that.
  • If the files_delete_v2 method fails, it should raise an exception with information about why it didn't work. Can you share the code you're using that isn't working for you?
  • I see, thanks for elaborating. No, unfortunately I don't have a better solution to offer. The API and the Chooser aren't designed to be used closely together like this, but I'll pass this along as a feature request. That being the case, you'll need to implement them both separately, or make your own file browser, as you…
  • Thanks for the feedback! I'm sending this along to the team.
  • @"ashishgaur" No, as a security precaution, the Dropbox/Showcase web site does not allow itself to be frame'd. 
  • Hi Bogdan, can you elaborate on what you have so far, and what you're stuck on exactly? The full Dropbox API and the Dropbox Chooser for the most part weren't meant to be used together, but you can do technically so (apart from logistical issues like pop-up restrictions which are out of our control unfortunately). If…
  • This is expected. From the documentation for /2/team/namespaces/list: `limit` deprecated UInt32(min=1, max=1000) Field is deprecated. Specifying a value here has no effect.
  • Thank you! We'll look into it and follow up with you there.
  • If you have a Dropbox Business API app with the "team member file access" permission, and want to use a user-specific API call, such as files_list_folder, you can do so using DropboxTeam.as_user. First, you should make your DropboxTeam instance, and then use DropboxTeam.as_user to get a Dropbox instance. You can then use…
  • As a security precaution, the Dropbox web site does not allow itself to be iframe'd. Dropbox does offer an API you can use to integrate custom Dropbox functionality into your app. E.g., the API offers the ability to programmatically, list, upload, and download files, among other operations. I can't speak to third party…