Forum Discussion

pymrofile's avatar
pymrofile
New member | Level 2
4 years ago

dbx.sharing_list_shared_links only returns empty set

Hi, I'm unable to use the dropbox api to find shared links. The sharing_list_shared_links method only returns an empty set despite having documents I share within the scope I've specified. When I paste a sharing link into the browser it works, but not using the python sdk.

 

I've also tried using the following methods to download the file given the shared url (which does work in browser) but these throw an ApiError(GetSharedLinkFileError('shared_link_access_denied', None)) even though I've added permissions for shared link access and generated a new token after making that change. The methods that throw this error are:

dbx.sharing_get_shared_link_file_to_file

AND

dbx.sharing_get_shared_link_file

 

Would really appreciate some help, have been stuck on this for a while. Ultimately the goal is to download a file (40 page pdf) from python given the sharing url for it.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Can you share the code you're using to call sharing_list_shared_links so we can see what parameter(s) you're setting?

     

    Also, what kind of shared link are you expecting/using? Could you maybe share an example for reference? 

     

    You can also open an API ticket here if you'd prefer to share privately. Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 9 hours ago
351 Following

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!