Greg-DB Dropbox Community Moderator

Comments

  • In addition to registering the redirect URI in the App Console like you mentioned, you should set the redirect URI you want to use in the code like DbxWebAuth.newRequestBuilder().withRedirectUri(...).build(). There's an example here.
  • Based on your description, it sounds like you're getting the access token from the "API v2 Explorer". That tool is just meant for prototyping Dropbox API calls, and currently has early access to an upcoming "short-lived access token" feature. That means that, unlike standard Dropbox API access tokens, the access tokens you…
  • That's correct, there can be a delay on search results for recent changes due to indexing lag. Depending on your use case though, some other endpoints may be more useful to you. For instance, since you mentioned you're uploading via the API, note that the /2/files/upload endpoint returns the metadata for uploaded file…
  • The Dropbox API itself does not offer a way to check if any access tokens were already generated for a particular user. You shouldn't need to do so anyway though. Once the app receives an access token, it should store and re-use that access token. Dropbox API access tokens don't expire by themselves so apps can re-use…
  • @"Alexii" Thanks for the note! I'll share this with the team.
  • Thanks for following up. Yes, a value from the 'parent_shared_folder_id' field should be a valid shared folder ID. If that's not working, please share the code and output you're currently using so we can take a look. You can also share privately by opening an API ticket here if you'd prefer. It would also probably be…
  • I see that you're trying to call the /2/files/download endpoint, and are getting a "path/not_found" error. You can look up what each error for any particular endpoint means in the documentation for that endpoint. For example, for /2/files/download, the "path/not_found" error means: "There is nothing at the given path.".…
  • The 'too_many_write_operations' error indicates "lock contention". That's not explicit rate limiting, but rather a result of how Dropbox works on the backend. This is a technical inability to make a modification in the account or shared folder at the time of the API call. This error indicates that there was simultaneous…
  • While the API v2 infrastructure itself does implement app authentication as one of the authentication types, it is supported (or not) on an endpoint-by-endpoint basis. Currently the API v2 /2/sharing/get_shared_link_metadata endpoint unfortunately does not support app authentication. (You can check which authentication…
  • Can you clarify which value from /2/team/members/get_info you're passing to /2/sharing/get_folder_metadata? The /2/team/members/get_info endpoint doesn't return shared folder information. It returns information about a particular team member. There isn't exactly something called "a member's shared folder". Any particular…
  • To remove a mountable folder, you should use the /2/sharing/relinquish_folder_membership endpoint (or corresponding native method in an SDK/library). That will remove the shared folder from the /2/sharing/list_folders[/continue] and /2/sharing/list_mountable_folders[/continue] lists. Note that this cannot be undone from…
  • @"umor" Здравко is correct, your datetime strings need to be quoted, and nested inside the "time" parameter, per the documentation. I recommend using the API v2 Explorer to help prototype these calls. It can build the code for you. (Click "Show Code".) In your actual app's code, we recommend using a JSON library to build…
  • Thanks for the report! I just tried connecting to the Dropbox API from a third party app on Android, and it worked for me, so it sounds like there may be something specific to your device or environment causing this. To help investigate, can you let me know: * are you the developer of an app, or an end-user? * do you have…
  • If you want programmatic unauthenticated read-only access, you may want to use a Dropbox shared link to the folder (which should contain a component "/sh/") with the URL parameters documented here: https://help.dropbox.com/files-folders/share/force-download If you modify the URL as described there, e.g., using a "dl=1"…
  • Un error 503 como este puede indicar un problema temporal del servidor de Dropbox. Si vuelve a intentar la solicitud, ¿tiene éxito? Si puede reproducir esto consistentemente, comparta los pasos y el código para reproducirlo para que podamos analizarlo. ¡Gracias! --- Por favor disculpe nuestras traducciones. Nuestras…
  • The /2/sharing/create_shared_link_with_settings endpoint will always return a 'shared_link_already_exists' error if a shared link for the requested item already exists. Catching and handling the exception is the proper way to accommodate that. (Note that there are other possible error types as well. You can find them…
  • @"huasa" You should be able to use non-ASCII characters in the filename for the Saver, as long as you properly set the charset for the HTML or JavaScript file accordingly. If the file URL's hostname contains non-ASCII characters though, convert it to punycode first and that should avoid the "Invalid host" error. If there…
  • Thanks! It looks like the error message is: "Bad state: Cannot set the body fields of a Request with content-type "application/octet-stream"." That's not an error message from the Dropbox API itself. It appears to be an error message from the HTTP client you're using. It looks like the problem is that you're attempting to…
  • You're not doing anything wrong. The /2/files/save_url endpoint unfortunately just doesn't support specifying a path relative to the ID for a folder, like /2/files/upload does. I'll pass this along as a feature request, but I can't promise if or when that might be implemented.
  • Unfortunately, the Dropbox API doesn't return the total size of the folder zip download, so it's not possible to get this ahead of time for the sake of progress tracking.
  • [Cross-linking for reference: https://stackoverflow.com/questions/57692602/flutter-http-content-type ] For reference, can you share the relevant code, and the error you're getting? When uploading to Dropbox via the API, e.g., using the /2/files/upload, the Dropbox API expects the file data in the request body, with a…
  • No, I'm afraid there isn't anything quite like that either. (The Chooser wasn't originally designed to be used together with the API, so there isn't much interoperability.) There are a few ways you can try, though they're not ideal and won't be 100% reliable for this: * Once you have the file ID, try…
  • No, unfortunately there isn't a way to get the account ID from the Chooser like this, but I'll pass this along as a feature request. I'm not currently aware of any plans to implement this though.
  • Do you own any apps on the account you're signed in to? If you don't own any apps, there will be nothing to list in that dropdown. You can register an app here.
  • @"jondotcom" No, unfortunately the Dropbox Paper API doesn't support creating new Paper documents from existing Paper templates, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • Yes, the Dropbox API itself uses UTC datetime strings in the ISO 8601 "combined date and time representation" format, so it has a resolution of seconds, not smaller. The Python SDK does the formatting locally to conform with the Dropbox API spec before sending it to Dropbox. The format string is '%Y-%m-%dT%H:%M:%SZ', and…
  • Exactly how you would process the thumbnail data to display it to the end-user would depend on a number of things, such as where you're running your code and what language you're using, for instance. You didn't mention exactly where you're running this or what you're using, but if you're referring to using JavaScript in…
  • That's correct, that 'path/conflict/file' indicates the upload failed because there's already a file at the specified path. You can find this WriteConflictError error in the documentation here. You can control the conflict behavior via the `mode` and `autorename` parameters for the `files_upload` method. The documentation…
  • I don't have an official update on this yet unfortunately. I'll let you know once I do. (For reference though, it sounds like this unfortunately is not currently meant for use like this. I.e., `no_one` isn't meant for use with the /2/sharing/create_shared_link_with_settings endpoint, and is only listed for it because the…
  • Can you elaborate on what you mean specifically when you say "the upload won't work"? For example, what API endpoint/method are you using, and what error or output are you getting?