Hi,
I would like to get all of the files in a Team Drive.
So far I have this -
admin_member_id = self.get_admin_account_access_token().admin_profile.team_member_id
headers = {}
headers["Authorization"] = token
headers["Dropbox-API-Select-User"] = admin_member_id
headers["Content-Type"] = "application/json"
url = dropbox_constants.DROPBOX_API_BASE + "sharing/list_folders"
data = json.dumps({})
res = requests.post(url, data=data, headers=headers)
if not res.status_code == 200:
return []
content_json = json.loads(res.content)
entries = content_json["entries"]
At this point, 'entries' holds shared folders metadata.
I couldn't find any way to retrieve list of files inside the folders out of this metadata.
Would appreciate any help