We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
sadhu_sanjay
9 years agoExplorer | Level 3
Get link of already shared Folder (Swift)
Hi,
I'm using
createSharedLinkWithSettings function to get the link of a already shared folder but it's giving this error:
error [request-id ce72d5ed059d9a78c1d7368710550f8e] API route error - {
".tag" = "shared_link_already_exists";
}
I would get the already shared link if the link already existed please help me with this
You can use listSharedLinks to list existing links. In this case, it sounds like you'd want to pass in the path of the folder as "path", and use "directOnly=true" to get only the link you're interested in.
6 Replies
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
You can use listSharedLinks to list existing links. In this case, it sounds like you'd want to pass in the path of the folder as "path", and use "directOnly=true" to get only the link you're interested in.
- sadhu_sanjay9 years agoExplorer | Level 3
Thanks, Greg
this solves it, Have another question if you don't mind answering, I would like my app to log in In BackGround, without showing the user Login controller, I know it's not recommended but is it possible or not ? if so how?
thanks
sadhu_sanjay - Greg-DB9 years ago
Dropbox Community Moderator
No, the user needs to interact with the app authorization flow manually to connect their account. This only needs to be done once per user though.
(Unless you mean you only want the user to connect to your own single account? That's technically possible, but not recommended.) - sadhu_sanjay9 years agoExplorer | Level 3Yes that's exactly I meant , I only want to connect to user to my Own account .
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks for confirming that. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.
However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your account and app. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/security .) - sadhu_sanjay9 years agoExplorer | Level 3
Thanks a lot Greg
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 4 minutes ago
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 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!