Greg-DB Dropbox Community Moderator

Comments

  • The methods for calling the API in the Dropbox Python SDK like files_list_folder don't offer the original JSON, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can transform the information in the returned native object, such as ListFolderResult…
  • [Cross-linking for reference: https://stackoverflow.com/questions/66247055/query-dropbox-api-with-select-user-url-parameter ] First, note that you don't need to use `request_json_object` directly. You generally should use the native methods provided for each endpoint. In the official Dropbox Python SDK, for…
  • Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations, so it sounds like it should work for your use case. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers…
  • @"studioharrison" Thanks for the note. I don't have an update on this yet but I'll follow up here once I do.
  • @"rishutiwari" You should only use the /2/auth/token/from_oauth1 endpoint if you have old OAuth 1 access token keys and secrets stored, e.g., retrieved using OAuth 1 for API v1, which is now retired. If you don't already have any of those to convert, you shouldn't use this endpoint. Please refer to my earlier comment on…
  • @"Roason" Thanks for the post! Posting on the forum like this is a good way to weigh in and indicate that you'd like a particular feature to be implemented. I'll follow up here with any updates, but I don't have any new on this particular feature request.
  • It sounds like you want access the folders in your "team space". By default, Dropbox API calls operate in the "member folder", not the team space, but you can configure them to operate in the team space when desired, by setting the "Dropbox-API-Path-Root" header. For information on how to do so, please refer to the Team…
  • @"Elliott C.1" No, unfortunately I don't have an update on this feature request.
  • I don't have any news on that feature request unfortunately. I'll add this to that request, but I can't promise if/when it would be done. As for the method from the web site, that is not officially supported, and is subject to change at any time. Third party apps should only use the officially documented public API.
  • If you request "offline" access like that, you'll get a refresh token that can be used to programmatically get a new short-lived access token whenever needed. If you use the constructor my colleague linked to, supplying your refresh token, app key, and app secret (if not using PKCE) in the DbxCredential, the Java SDK will…
  • The Dropbox API doesn't offer a way to update only a portion of a file like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • Dropbox OAuth 2 refresh tokens don't expire by themselves, but there are a number of ways they can become invalid. For example: * the user or team admin can revoke all access/refresh tokens for an app by unlinking it on any of the following Dropbox web pages: * the Connected apps page * the Security checkup page * the Team…
  • @"jgray0909" The issue in this thread was regarding an error on the App Console in particular. That specific issue has been fixed. If you're seeing an issue with a different page, please contact support here.
  • @"softwaremedicalshare" The link ban I referred to does apply to the functionality you're trying to use. I recommend contacting support if you have questions about the status of your account.
  • Dropbox does offer an API you can use for listing, uploading, downloading, and sharing files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation and tutorials here. For example, to upload files you can use /2/files/upload, and to create shared links you can…
  • The Dropbox API uses a few different auth types, as you linked to, but each particular endpoint only supports a particular set of auth types. You can see which auth type(s) any particular endpoint supports in the documentation for that endpoint, under the "AUTHENTICATION" section. For example, for /2/file_requests/list_v2,…
  • @"someoneknew" Thanks for the additional information. This screenshot doesn't seem to show the actual response body from the Dropbox API though. The "400" is just the status code of the response from the Dropbox API, but the response would also contain a body, which isn't being shown here. You may need to check the…
  • @"softwaremedicalshare" It looks like our comments just crossed. Be sure to check out my message here.
  • @"softwaremedicalshare" It sounds like your links may currently be banned on your account. That would cause this error. (This doesn't sound like a scopes issue; that would be a different error message.) You can find more information on link bans here: https://help.dropbox.com/files-folders/share/banned-links 
  • Thanks for following up and confirming the size varies. Also, just to clarify your last message, where you mentioned it failed after exactly 15 minutes, does it always fails after exactly 15 minutes (or did you mean just this last attempt in particular)? And you mentioned there was no error, but does it get to your…
  • No, the two work a bit differently so their options and functionality don't map exactly to one another, so there isn't really a way to make them behave exactly the same way.
  • @"Здравко" Thanks for clarifying! The Dropbox API doesn't offer anything exactly like that, but we'll consider it a feature request.
  • Does the actual downloaded size vary, or is it the same each time? If it's the same, please let me know what it is for reference. Also, how long does the (incomplete) download take? I believe a single connection is only valid for 90 minutes, so that could be the cause if it takes that long. (Though the HTTPS client is…
  • @"flygecko" The Dropbox API servers now accept, but do not require, SNI from the client, so I don't have a good way to recommend for testing this. It generally should be done automatically by the client though. Please refer to your platform's documentation for information on how you might update your client to use SNI. 
  • Thanks for the additional feedback! @"Здравко" For information on detecting changes I recommend reading the Detecting Changes Guide, if you haven't already. Also, for reference, Dropbox does enforce an automatic system of short-term locking that prevents simultaneous changes. You can find more information on that under the…
  • @"flygecko" The team is planning on keeping the current SNI-optional configuration. We do recommend modernizing your client/libraries though, e.g., to support SNI, and the latest transport security protocols, etc.
  • Yes, the withPathRoot method is the right way to access different roots. I just tried it and it is working for me. Can you clarify what you mean when you say you tried many ways to keep the client variable? What did you use exactly? In my own testing I am able to reproduce the "-999" error you're getting when I only define…
  • The Dropbox API servers should no longer be requiring SNI. Please try again and let me know if you're still seeing any issues. Thanks!
  • I can't think of any reason you'd be seeing more calls to /2/files/search without actually calling filesSearch. For reference, here's a link to the code from v2.5.12 of the SDK, and the only reference to files/search is in the filesSearch definition. Could you perhaps share the relevant code you mention here: "the function…
  • Thanks for confirming that. Yes, the Dropbox API servers do now require SNI. I'm raising this with the team. I'll follow up here once I have an update on that.