Metadata, res = dbx.sharing_get_shared_link_file(url=shared_link.url, path="/" + entry. # note: this simple implementation only works for files in the root of the folder # todo: add implementation for files_list_folder_continue Listing = dbx.files_list_folder(path="", shared_link=shared_link) That would look something like this, based on your existing code and URL: import dropbox You can do so by passing in the URL in the sharedlink parameter for fileslistfolder. You can then use that to build the path to pass to sharing_get_shared_link_file to download each desired file. If you have a shared link to a folder containing files, instead of just a shared link to a specific file, you can use fileslistfolder and fileslistfoldercontinue to list the contents of that folder. The result will contain information about the contents, such as the name of each one. Go to Download Manager Settings Page > Cloud Storage Tab Paste the App Key, App Secret, and Access Token in Dropbox API Credentials and Save. You can do so by passing in the URL in the shared_link parameter for files_list_folder. If you have a shared link to a folder containing files, instead of just a shared link to a specific file, you can use files_list_folder and files_list_folder_continue to list the contents of that folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |