cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it 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

 

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

Re: sharedFolderId

Greg-DB
Dropboxer

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

Re: sharedFolderId

Greg-DB
Dropboxer

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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?