Greg-DB Dropbox Community Moderator

Comments

  • Dropbox doesn't send webhook notifications for changes to Paper documents, but we'll consider it a feature request. I can't promise a timeline for if/when that might get added though.
  • @"guymayor" Здравко is correct; the Dropbox API doesn't offer a way to upload files based only on the app key and secret. The app key and secret only identify the app itself. Making changes to an account, such as uploading files, requires authorization to access that account. The Dropbox API doesn't offer any sort of "app…
  • You can find an example of the webhooks notification payload in the webhooks documentation here: https://www.dropbox.com/developers/reference/webhooks#notifications
  • I'm glad to hear you already got this sorted out, and thanks for the feedback!
  • You can download the file data using the API/SDK. Please refer to my comment here for some information on doing that. Exactly what you do with the data, e.g., how you display or present it to the user, will depend on your use case.
  • The "move" methods would only be if you need to actually change the location of a file or folder in the Dropbox account. If you just want to browse a different folder, you can call filesListFolder/filesListFolderContinue again, supplying the 'path_lower' of the sub-folder you want to list. You would then use the result…
  • I see you've already found the methods for downloading a file, and it sounds like you are getting the file data successfully. If the download call failed it would raise an exception. It sounds like you're having an issue viewing the file though, perhaps due to reading it with an incorrect encoding. How are you…
  • We've fixed this so that you can now check the async job status even if the original access token is revoked or expired, as long as the access token you are using is for the same app/user pair as the original.
  • When you get the response from filesListFolder you need to check the returned FilesListFolderResult.has_more value and if it's true, call back to filesListFolderContinue. Calling filesListFolderContinue works the same way as filesListFolder except that you pass in a 'cursor', from FilesListFolderResult.cursor. It also…
  • What is the value of your '_team_name_space_id' variable? Based on the error output you shared, if you want to list the contents of the team space, you should set your '_team_name_space_id' variable to "5632093280".
  • Can you elaborate on what exactly you're currently stuck on? To use the Dropbox API from JavaScript, we recommend using the official Dropbox API v2 JavaScript SDK. With that, you can use the filesListFolder and filesListFolderContinue methods to list the contents of any desired folder, at any level, by passing the full…
  • To use the new search method in the Java SDK, you can start by supplying your "query", which is the string you want to search for, to the searchV2Builder method to get a SearchV2Builder. Then you can use the SearchV2Builder.withOptions method to add other optional settings, such as the path to search in, by passing it…
  • To monitor changes on a folder like this, I recommend using the cursor functionality offered by /2/files/list_folder[/continue]. You can store the latest returned 'cursor' from any /2/files/list_folder[/continue] result, and then later call back to /2/files/list_folder/continue to get information about only what's changed…
  • It looks like there's currently an issue with the Python SDK if you use 'as_user' or 'as_admin' before 'with_path_root'. I'll ask the team to fix that up. As a workaround, please use 'with_path_root' before 'as_user' or 'as_admin', as in the example in my previous comment.
  • To clarify, is the screenshot you shared showing the rendering of some HTML returned by https://content.dropboxapi.com/2/files/download_zip? Can you share what the rest of the response is, that is, the response status and headers?
  • I see this was also opened as a new thread, so I'll take a look and reply on that one: https://www.dropboxforum.com/t5/Discuss-Developer-API/download-zip-api/m-p/392520#M963
  • [Cross-linking for reference: https://stackoverflow.com/questions/59904691/laravel-dropbox-api-v2-empty-file-on-upload ] The Dropbox API /2/files/upload endpoint is a "content-upload" style endpoint, meaning that it expects the file data for the upload in the HTTPS request body. Exactly how you set the file data in the…
  • Thanks! That's correct, there isn't currently a way to programmatically list team-linked apps. (If you're using a Dropbox Business API with auditing access, you can look up 'app_link_team'/'app_unlink_team' events from /2/team_log/get_events[/continue], but that's not a great solution. It would be more work to implement…
  • [Cross-linking for reference: https://stackoverflow.com/questions/59877833/download-files-from-dropbox-team-folder-using-python-sdk/59884229?noredirect=1#comment105910967_59884229 ] There are two things to note here that may be preventing you from listing everything you're expecting: * The files_list_folder method isn't…
  • There isn't a way to revert or switch between the two configurations yourself. Dropbox Business support might be able to do that for you if needed, but I can't guarantee that. (That's a different department so I can't speak for them.)
  • Thanks for the additional context! Given that, I should clarify: The Dropbox API (i.e., for "user-linked" apps) doesn't offer a way for an app to determine its own permission level, e.g., by making some API call using any particular access token for that app. Currently, the permission is chosen by the developer when they…
  • This should be fixed now. Please try again and let me know if you're still seeing this issue. Thanks!
  • That's correct, the Java SDK doesn't directly expose the status code itself. In the case of that method, if it returns a EchoResult that means that the API returned a 200 status, and the different exceptions correspond to the different kinds of failures. Can you elaborate on what you need that that doesn't cover? Thanks!
  • The official Dropbox SDKs don't return the actual status codes directly. They instead translate them to different exception types that you can catch natively. For example, in the Java SDK, the DbxUserCheckRequests.user method will return an EchoResult if the call is successful (i.e., a 200 status code), or raise an…
  • I see, thanks for trying that and letting me know! Although it hasn't completely avoided the issue, the fact that it reduced it does indicate that this is likely due to the delayed contention issue I mentioned. Unfortunately, there isn't a better workaround for this, and 10 seconds was just an estimate of what would avoid…
  • You can retrieve a list of revisions to a particular file by calling /2/files/list_revisions. That will give you a list of FileMetadata for each change.
  • The Dropbox API does offer some new endpoints for locking and unlocking files, as well as checking for locked files: * /2/files/lock_file_batch * /2/files/unlock_file_batch * /2/files/get_file_lock_batch Note that these endpoints are still in "preview" though, and so are subject to change. Also, they may not be available…
  • If you're using Python, we recommend using the official Dropbox API v2 Python SDK. With that, you can retrieve and check the FileMetadata objects for files to see when they were last uploaded/modified. Specifically, the FileMetadata.server_modified field contains the datetime of the latest change to the file. You can…
  • Hi Mark, unfortunately Dropbox also doesn't offer an official interface for pausing/resuming the desktop client. I'll pass this along as a request as well, but likewise I can't promise if/when that might be implemented. Apologies I don't have better news for you!
  • Thanks for the additional feedback!