cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

sharedFolderId

sharedFolderId

manmanman
Explorer | Level 4
Go to solution

 

DbxUserSharingRequests.getSharedLinkMetadata("https://www.dropbox.com/sh/b6v0dz1kkkap3s7/AAAAizqELKLxCZx7cXtBvw3La?dl=0")
return
{
".tag" : "folder",
"url" : "https://www.dropbox.com/sh/b6v0dz1kkkap3s7/AAAAizqELKLxCZx7cXtBvw3La?dl=0",
"name" : "Slide Shows",
"link_permissions" : {
"can_revoke" : true,
"resolved_visibility" : "public",
"requested_visibility" : "public"
},
"id" : "id:gMlrgFnNKzAAAAAAAAAAFQ",
"path_lower" : "/slide shows"
}

I didn't get the content related to sharedFolderId. how can I get the correct sharedFolderId according to the shared folder link and then traverse the folder to download the files it contains

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

You don't need the shared folder ID from a shared link in order to list and download the contents of the shared link.

 

You can use listFolderBuilder/listFolderContinue to list the contents of a folder based on a shared link to that folder. Use ListFolderBuilder.withSharedLink to set the shared link.

 

Then, based on the file names returned there, you can use getSharedLinkFileBuilder to download the desired file(s). Use GetSharedLinkFileBuilder.withPath to set the relative path for the particular file you want to download.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

You don't need the shared folder ID from a shared link in order to list and download the contents of the shared link.

 

You can use listFolderBuilder/listFolderContinue to list the contents of a folder based on a shared link to that folder. Use ListFolderBuilder.withSharedLink to set the shared link.

 

Then, based on the file names returned there, you can use getSharedLinkFileBuilder to download the desired file(s). Use GetSharedLinkFileBuilder.withPath to set the relative path for the particular file you want to download.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?