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

Pythong SDK - team_team_folder_list

Explorer | Level 4

Hi I'm having trouble attempting to use the python SDK

I'm trying to access a list of team folders using 'team_team_folder_list'

For example:

dbx = dropbox.Dropbox(access_token)
result = dbx.team_team_folder_list(path="")

Gives the error:

Traceback (most recent call last):
  File "dropbox-test.py", line 116, in <module>
    result = dbx.team_team_folder_list(path="")
AttributeError: 'Dropbox' object has no attribute 'team_team_folder_list'

I've tried a few variants of the above - and can see the function defined in the SDK - am I supposed to be calling it in a different way?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Pythong SDK - team_team_folder_list

Dropboxer
Dropboxer

The team_team_folder_list method is defined on the DropboxTeam class, so you'll need to instantiate a DropboxTeam and call it on that (instead of just Dropbox). That is, that first line should look like this instead:

dbx = dropbox.DropboxTeam(access_token)

Also, note that the team_team_folder_list does not take a 'path' parameter. You can find more information on using it in the documentation

I also recommend reading the Namespace Guide and Content Access Guide for information on how to access various parts of a Dropbox Business team's content.

View solution in original post

2 Replies 2
Highlighted

Re: Pythong SDK - team_team_folder_list

Dropboxer
Dropboxer

The team_team_folder_list method is defined on the DropboxTeam class, so you'll need to instantiate a DropboxTeam and call it on that (instead of just Dropbox). That is, that first line should look like this instead:

dbx = dropbox.DropboxTeam(access_token)

Also, note that the team_team_folder_list does not take a 'path' parameter. You can find more information on using it in the documentation

I also recommend reading the Namespace Guide and Content Access Guide for information on how to access various parts of a Dropbox Business team's content.

View solution in original post

Highlighted

Re: Pythong SDK - team_team_folder_list

Explorer | Level 4

Thanks Greg that works perfectly!

I would never have gotten to invoking it with an access token from the documentation

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?