Greg-DB Dropbox Community Moderator

Comments

  • @"ampinwatec" No, unfortunately I don't have any news on this.
  • No, I don't have any news on this request.
  • I'm not sure I follow. What do you mean by "accessID"? Also, can you clarify what you mean when you say " field state is filled correctly but I don't have the code because it is hidden"? Please note that I'm happy to help with any questions or issues you have with the Dropbox API itself, but I can't offer general security…
  • Here's the recommended way to get the serverModified out of a Metadata object given by filesGetMetadata: client!.files.getMetadata(path: path) .response {response, error in if let (metadata) = response { switch metadata { case let fileMetadata as Files.FileMetadata: print("File metadata: \(fileMetadata)") let…
  • There isn't a way to perform an exact string search, but I'll pass this along as a feature request. I also can't think of another workaround for finding an item of a particular name if you don't know the id or path unfortunately. (You could list everything using /2/files/list_folder[/continue] and filter client-side, but…
  • The /2/files/list_folder endpoint is an "RPC"-style endpoint, meaning it expects the parameters in the request body (not in a request header). Please move your parameters to the request body instead of the "Dropbox-API-Arg" header and try again. (The "Dropbox-API-Arg" header is only used for content-upload and…
  • When using the "code" flow, Dropbox will return an "authorization code" to your redirect URI. This authorization code is specific to the Dropbox user that authorized the app. You should then exchange this authorization code for an access token using /oauth2/token. In addition to the access token, that endpoint will return…
  • Can you elaborate on what you mean when you "the response that the dropbox server sends to my server has no information about the user"? You can find information on how the result is returned to the redirect URI in the OAuth 2 /authorize documentation here:…
  • I can help with technical support questions for the API here. Your screenshot shows a successful API call, and the response is the data for the xlsx file that is stored on Dropbox. Postman is just printing out that data, but to actually use it, you'll probably want to save that data to your local filesystem. From there,…
  • @"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…