Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
Overall objective:
Once I copy a file from a user's folder to our Production folder, I try to create a shared link for it and it fails; or I try to list the shared link and it fails. By fail, I referring to not returning the expected URL. This has me going bananas. Either creating a shared link or listing it returns none 😞
@babydream As Здравко said, the code you shared here doesn't show an attempt to create a shared link. Files don't have shared links by default, so sharing_list_shared_links won't list a shared link for a file before one is created. Also, when copying a file, such as using files_copy_v2, a shared link on the original file does not get copied to the new copy of the file.
You can create a shared link using sharing_create_shared_link_with_settings. If that call isn't working as expected, please share the relevant code and error/output.
Hi @babydream,
Where are you creating your links? 🤔 You can list existing links only; if there is no any link, as seems it's, the result you got is something normal.
@babydream As Здравко said, the code you shared here doesn't show an attempt to create a shared link. Files don't have shared links by default, so sharing_list_shared_links won't list a shared link for a file before one is created. Also, when copying a file, such as using files_copy_v2, a shared link on the original file does not get copied to the new copy of the file.
You can create a shared link using sharing_create_shared_link_with_settings. If that call isn't working as expected, please share the relevant code and error/output.
sharing_create_shared_link_with_settings. Worked quite well. Thank you.
Hi there!
If you need more help you can view your support options (expected response time for a 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!