Hi, developpers!
I have some shared-folders which is created by GUI. I want to manipulate these folders via API. How do I get these folder’s shared_folder_id of these folders. If I can get those, I want to operate those folders by Python.
You can get the shared folder IDs for shared folders using a number of different pieces of the Dropbox API. For instance, via the Dropbox Python SDK:
The following guides may be helpful:
Is there an easy way to find a shared_folder_id? Maybe the solution could be posted right here where people searching can easily find it.
Eric
@eperic The links in the first list in my previous message refer to different methods that can be used to retrieve shared folder IDs for shared folders. Exactly what approach one would take would depend on what the scenario is. For example, to get the shared folder ID of a shared folder at a given path, one would use files_get_metadata. Or to list all files/folders under a particular path, including shared folder IDs for shared folders, one would use files_list_folder/files_list_folder_continue. Or to list all shared folders for the connected account, one would use sharing_list_folders/sharing_list_folders_continue.
Those are links to the methods in the Python SDK, since the original poster here asked about using Python, but these methods are also available as HTTPS endpoints, in case you can't use one of the official SDKs, respectively:
The linked documentation includes examples of calling those using curl. The API Explorer is also a very useful tool for trying out calls.