Greg-DB Dropbox Community Moderator

Comments

  • @"lenner90" No, unfortunately it's not possible to get a temporary link for a folder itself, or for multiple files in bulk, but I'll pass this along as a feature request. 
  • The /2/files/download endpoint is the correct way to retrieve the original file data for a file in the connected user's account. The response is the raw file data itself. You can use that however you want, e.g., save it to your server and serve it back to the user in your web app. If you don't want or need the original…
  • The "Dropbox-API-Path-Root" functionality is now available in the JavaScript SDK, as of v4.0.15. You can set it using the pathRoot parameter for the Dropbox constructor: var dbx = new Dropbox.Dropbox({ accessToken: '<ACCESS_TOKEN>', pathRoot: JSON.stringify({".tag": "root", "root": "123456789"}) }); Please refer to the…
  • The 'recipient_not_verified' error should just indicate that the recipient's email address isn't verified. If that's not working correclty for you, please open an API ticket with a sample request and response (be sure to redact the access token though) so we can look into it for you. Thanks in advance! 
  • While access tokens don't expire automatically, users can revoke access tokens at any time. You can check if an access token is still currently valid by attempting an API call, such as getCurrentAccount. If the access token is no longer valid though, it's not possible to get a new one without sending the user through the…
  • It looks like you're requesting sample code for calling /2/sharing/list_shared_links from PHP. I don't have a sample for that endpoint in PHP unfortunately. Please write the code you need, using the documentation and curl example as a reference, and let us know if something isn't working as expected.
  • The "dl.dropboxusercontent.com" shared links currently happen to work for this, but I can't promise they will continue to. It may break without warning.
  • Thanks! I see that you registered a "Dropbox Business API" app. That is for the Dropbox Business API, which has functionality specific to Business teams, so you can only connect that if you have a Business plan. For what you described earlier, you should register a "full Dropbox" app. I.e., on the app creation page, select…
  • Can you clarify what you mean when you refer to "the business sandbox"? None of the functionality mentioned in this thread here requires a Business account. You can register and use a "full Dropbox" app and use shared folders with any account type.
  • The unsupported form of shared links is subject to change/break without warning.
  • You can list existing shared links or create new shared links using the Dropbox API. The Dropbox API only returns the supported version of the links. If you want to use the unsupported versions, you'd have to perform the string modification in your code.
  • how am I guaranteed to get each and every folder that resides inside the team folder I am listing? I mean if the user 'Dropbox-API-Select-User' does not have permission to a particular folder inside a team folder, then apparently that folder will not be returned in listing call. Would using 'Dropbox-API-Select-Admin'…
  • Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can also perform these operations in shared folders. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here. The specific issue you're seeing with…
  • The 'www.dropbox.com site' doesn't allow CORS like this. You can technically make this work using 'dl.dropboxusercontent.com' (e.g., "https://dl.dropboxusercontent.com/s/0tztdjct8uuwgl5/flowers.mp4"), but please note that isn't officially supported.
  • Apologies, I'm not sure I follow. The OkHttp output mentioned using "setLevel(Level.FINE)" in particular to help track this down. I don't see where you set that. Were you able to use that? Otherwise, if you can share the whatever code is running around when you do see these, we can try to reproduce it to track it down on…
  • 1. When you receive a DeletedMetadata, it will contain a PathLower value. That's the path at which the item used to exist. You should look up that entry in whatever local state you're maintaing and remove it. When you receive a FileMetadata, it will contain an Id value. You can compare that to previous entries that you had…
  • @"danFLP" No, unfortunately I don't have any news on this request. We appreciate the feedback, and I've sent it along to the team.
  • With the Python SDK, you can use the "_tag" property to access the value. It is private, and so not officially supported, but I don't expect it to change. Just make sure you test it whenver you update to a new version of the SDK. The get_* methods can be used to retrieve the value of the set union field. The field may not…
  • Thanks for the feedback! In general, the SDKs are meant to abstract away the concept of the "tag", but I'll pass this along as a feature request for a public accessor for the tag value itself. (Also, "_tag" is considered private, but that said, it's unlikely to change.)
  • No, unfortunately the API functionality for this (/2/sharing/get_shared_link_file) currently only supports "user authentication", which does require an app and user. I'll pass this along as a feature request though. 
  • To de-duplicate these entries, you should use the namespace ID for each shared/team folder. I.e., the "shared folder ID" or "team folder ID". These IDs will be consistent across user accounts, even if the path of the folder is not. You can determine if a user is on a team that uses the "team space" by checking the…
  • Using ListFolderAsync and ListFolderContinueAsync is the right way to list the contents of a folder. Are you saying that both of those calls aren't returning any entries? Make sure you list out the entries of both calls; if there aren't many items in the folder, the entire list may only be returned to the first call…
  • [Cross-linking for reference: https://stackoverflow.com/questions/53973604/dropbox-paper-api-video-not-showing-when-posting-markdown ] The Dropbox Paper API doesn't offer the ability to programmatically embed media like that unfortunately. When uploading using /2/paper/docs/create or /2/paper/docs/update you'll just get…
  • First, to clarify, are you using the official Dropbox Java SDK? If so, please let me know what version number you have installed. Anyway, did you try enabling the finer-grained logging that the message recommended? Please try that and share the output.
  • @"ampinwatec" I'm afraid we don't have any update on this feature request. Apologies I don't have any better news to share for the new year!
  • Dropbox doesn't offer a way to list Paper folders and docs exactly like that. You'll need to use /2/paper/docs/list and /2/paper/docs/list/continue to list docs themselves, and then use /2/paper/docs/get_folder_info to get the folder info. You can then use that information to create the structure you want.
  • @"tridejur" JSON.stringify is a method specific to JavaScript. This thread is about proper client-side handling of this API call in JavaScript, so this code is only relevant to JavaScript. Plese refer to the documentation for whatever language you're using for information on how to parse/write JSON. There wasn't an issue…
  • @"qedi" Thanks for the feedback!
  • The example I linked to happens to use uploadData, but you can also pass a 'mode' to uploadUrl. Constructing and passing the mode works the same way for both.
  • The Dropbox API doesn't offer the ability to send the email for a file request like the web site does, but I'll pass this along as a feature request.