cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get link of already shared Folder (Swift)

Get link of already shared Folder (Swift)

sadhu_sanjay
Explorer | Level 3
Go to solution

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 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

6 Replies 6

Greg-DB
Dropbox Staff
Go to solution

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_sanjay
Explorer | Level 3
Go to solution

      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-DB
Dropbox Staff
Go to solution
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_sanjay
Explorer | Level 3
Go to solution
Yes that's exactly I meant , I only want to connect to user to my Own account .

Greg-DB
Dropbox Staff
Go to solution
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_sanjay
Explorer | Level 3
Go to solution

Thanks a lot Greg

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    sadhu_sanjay Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?