Dropbox API Getting a shared link for a file or folder Creating a shared link for a folder using the Dropbox Python library


This uses the Dropbox Python SDK to create a shared link for a folder:

import dropbox
dbx = dropbox.Dropbox("<ACCESS_TOKEN>")
shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Testing")
print shared_link_metadata.url

<ACCESS_TOKEN> should be replaced with the access token.