cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to list the contents of a team folder?

Explorer | Level 3

I am using dropbox business account and API v2.0. I have team folder with many subfolders and files in it. When I call the api /team_folder/list I get the name of the team folder. But how do I get list the contents (both files and folders) of a teamfolder? I couldnt find any related api calls in the team section in the documentation - https://www.dropbox.com/developers/documentation/http/teams#team-team_folder-list.

Please advice.

 

Also, please let me know if there is any PHP sdk available for Business API. Currently I am using HTTP api requests.

 

Thanks.

1 Accepted Solution

Accepted Solutions
Highlighted

Re: How to list the contents of a team folder?

Dropboxer
Dropboxer
In order to list the contents of a folder, such as a team folder, you should use /2/files/list_folder[/continue]:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

Note that this is a user endpoint, so if you have a Business API app, you'd need to have the "team member file access" permission and use the "member file access" feature:

https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access

We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:

https://www.dropbox.com/developers/documentation/communitysdks

Or, you can call the HTTPS endpoints themselves, as you have been:

https://www.dropbox.com/developers/documentation/http/documentation

View solution in original post

4 Replies 4
Highlighted

Re: How to list the contents of a team folder?

Super User II
Super User II
*moves to API forum*

 


- - -


Heart Did this post help you? If so please mark it for some Kudos below. 


 Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.


 Did this post not resolve your issue? If so please give us some more information so we can try and help - please remember we cannot see over your shoulder so be as descriptive as possible! 


 

Highlighted

Re: How to list the contents of a team folder?

Dropboxer
Dropboxer
In order to list the contents of a folder, such as a team folder, you should use /2/files/list_folder[/continue]:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

Note that this is a user endpoint, so if you have a Business API app, you'd need to have the "team member file access" permission and use the "member file access" feature:

https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access

We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:

https://www.dropbox.com/developers/documentation/communitysdks

Or, you can call the HTTPS endpoints themselves, as you have been:

https://www.dropbox.com/developers/documentation/http/documentation

View solution in original post

Highlighted

Re: How to list the contents of a team folder?

Explorer | Level 4

According to this article: https://www.dropbox.com/help/business/team-folders

 

I believe that there're two kinds of Dropbox Business Account:

  • A: the Dropbox Business account created a long time ago.
  • B: the Dropbox Business account created recently. => with Team Space

 

The /2/files/list_folder lists all the files include team folders of A.

But the /2/files/list_folder lists only the files in the purple folder (private folder) of B.

 

Is there any way to list team folders and their contents of B's Team Space?

Thank you!

Highlighted

Re: How to list the contents of a team folder?

Dropboxer
Dropboxer

@hsin Yes, that's correct. For the newer type B, please refer to the namespace guide, which covers how to access the team space:

 

https://www.dropbox.com/developers/reference/namespace-guide

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?