Learn how to make the most out of the Dropbox Community here 💙.
Learn how to make the most out of the Dropbox Community here 💙.
I am using Python 3.11. I finally figured out how to get to the url through trial and error. Dropbox documentation on Python needs to be updated to explicitly state how the return values are processed. Otherwise, it can be a nightmare. I know you guys don't support language specifics on how to extract the parameter values but it would be nice to have this documented. Thank you
The sharing_get_shared_links method returns a GetSharedLinksResult object which contains a 'links' field which is a list of LinkMetadata; on each of those you can access the 'url' field to get the URL.
So, the code to print out each URL would look like this:
for link in shared_link_metadata.links:
print(link.url)
By the way, /2/sharing/get_shared_links is deprecated in favor of /2/sharing/list_shared_links, so please use sharing_list_shared_links instead of sharing_get_shared_links. The code for reading the URLs would work the same way.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!