You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
sreeraj
7 years agoExplorer | Level 3
How to list the contents of a team folder?
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 li...
- 7 years agoIn 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
Greg-DB
Dropbox Staff
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
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
hsin
7 years agoExplorer | 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!
- Greg-DB7 years agoDropbox Staff
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
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,883 PostsLatest Activity: 5 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!