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
msullybos
Explorer | Level 3
For files/list_folders, can you use the team_folder_id in place of the path?
Thanks
Greg-DB
4 years agoDropbox Staff
msullybos Yes, the /2/files/list_folder endpoint supports namespace ID paths in the 'path' parameter, so you can use the team_folder_id for a team folder as the 'path' value, like "ns:123456789", where 123456789 is the team_folder_id. (For information on how to interact with a team space though, refer to the Team Files Guide.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,883 PostsLatest Activity: 4 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!