Comments
-
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!
-
You can find this information in the 'FileMetadata' object for the file. Specifically, FileMetadata.server_modified is the date/time when the file was last changed, and FileMetadata.sharing_info.modified_by contains the account ID for the user that last changed the file, if the file is in a shared folder. You can get…
-
No, the Dropbox API doesn't offer a way to programmatically retrieve the permission or access type for the app, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. For context, can you elaborate on why you need or want to be able to do so? Thanks!
-
No problem, thanks for confirming. Anyway, yes, I meant adding a new 10 second delay before the next /2/sharing/share_folder call.
-
Apologies, I'm not sure I follow. In your original message, the error output you shared appears to be from the response to a call to /2/sharing/check_share_job_status (for checking the job started by calling /2/sharing/share_folder). In your latest message though, you just said you're getting an error from…
-
Thanks for the additional information. I see you have extra \ values in your JSON string. You may have copied those from the command-line curl examples in the documentation. Those are only needed in contexts where you need to escape the subsequent " values, such as in bash, like in those examples, since the " character is…
-
@"kshpytsya" Yes, that should work as well.
-
The /2/files/download endpoint is a "content-download" style endpoint, so it expects the parameters (such as "path") as JSON in a 'Dropbox-API-Arg' request header. This "could not decode input as JSON" error indicates that the value supplied in the 'Dropbox-API-Arg' request header could not be successfully parsed, likely…
-
No, the Dropbox Business API doesn't offer a way to download invoices, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"Dennyw" No, unfortunately I don't have any news on this request.