Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Mark L.45
9 years agoCollaborator | Level 9
Shared Links in SwiftyDropbox broken?
Running this function using SwiftyDropbox! Was working well til this morning, now it returns nothing useful, just the reply that the link already exists, and when I try and get the link... it returns...
Greg-DB
Dropbox Community Moderator
9 years agoHi Mark, the known issue it sounds like you're refrrring to is an unexpected 403 error from /1/view links, which isn't related to the code you shared.
It sounds like you're seeing an unexpected result from getSharedLinkFile. You don't seem to be checking the error for that call in your code though. Can you print that out?
Also, for reference, if you're trying to get the existing shared link for a particular path, you should use listSharedLinks with path as the path to the file or folder and direct=true. The getSharedLinkFile method method takes a shared URL, not a path, and gives a download for the linked file. This is likely what the issue is, as it appears you're passing a path to this method.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!