cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Find out how Tiffany, a Customer Experience superstar uses Dropbox to keep her family in the loop when it comes to her new baby 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: 

Re: How to read a shared folder link in v2?

How to read a shared folder link in v2?

Vincent P.9
Explorer | Level 4

When I share a dropbox folder by passing a link to someone, the format is something like:

https://www.dropbox.com/sh/someid/someotherid?dl=0

Here is the API to read a shared folder:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_folder_metadata

What is the folder id? I tried every part of the shared link without any success, I just get a 409 error "Invalid id".

How can I read a shared link?

14 Replies 14

Re: How to read a shared folder link in v2?

Greg-DB
Dropboxer

The /2/sharing/get_folder_metadata endpoint you're referring to is for operating on shared folders, but you have a shared link (to a folder) which is a different kind of sharing functionality on Dropbox and so uses a different ID.

If you want information about a shared link, for a file or folder, you can use /2/sharing/get_shared_link_metadata:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata

Or to download file content from a link:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file

Re: How to read a shared folder link in v2?

tim
Explorer | Level 3

@Gregory, how can you list the files that are at the public shared link?

get_shared_link_metadata does not return the list of files, and does not return the shared folder ID, so how is this possible?

Re: How to read a shared folder link in v2?

tim
Explorer | Level 3

... forgot to write: this must be possible because it is possible in API v1 with 

https://api.dropbox.com/1/metadata/link

... i'm using SwiftyDropbox v2 and not able to do this now

Re: How to read a shared folder link in v2?

Greg-DB
Dropboxer

Hi Tim, unfortunately that endpoint in API v2 doesn't currently return those particular pieces of information, but I'll be sure to pass this along as a feature request. 

Re: How to read a shared folder link in v2?

tim
Explorer | Level 3

Wait so in v2 there is no way to list the files in a shared folder?! Ugggh i have to revert my whole app to v1?!

Re: How to read a shared folder link in v2?

Greg-DB
Dropboxer

Apologies for the inconvenience! The API v2 shared link endpoint doesn't return all of the same information. I've sent this along as a request but I can't offer a timeline for when it may be added to v2. 

Re: How to read a shared folder link in v2?

tim
Explorer | Level 3

Yeah, "the same information" isn't what's necessary. "Doing the most basic thing that it did in v1", ie. listing files, is necessary.

Re: How to read a shared folder link in v2?

Alexander P.5
New member | Level 1

Crying here.

Re: How to read a shared folder link in v2?

Alexander P.5
New member | Level 1

Need more support?