<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting all files in a team drive in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-all-files-in-a-team-drive/m-p/317344#M18819</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get all of the files in a Team Drive.&lt;/P&gt;&lt;P&gt;So far I have this -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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"]&lt;/PRE&gt;&lt;P&gt;At this point, 'entries' holds shared folders metadata.&lt;/P&gt;&lt;P&gt;I couldn't find any way to retrieve list of files inside the folders out of this metadata.&lt;/P&gt;&lt;P&gt;Would appreciate any help&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:08:45 GMT</pubDate>
    <dc:creator>Rashti</dc:creator>
    <dc:date>2019-05-29T09:08:45Z</dc:date>
    <item>
      <title>Getting all files in a team drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-all-files-in-a-team-drive/m-p/317344#M18819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get all of the files in a Team Drive.&lt;/P&gt;&lt;P&gt;So far I have this -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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"]&lt;/PRE&gt;&lt;P&gt;At this point, 'entries' holds shared folders metadata.&lt;/P&gt;&lt;P&gt;I couldn't find any way to retrieve list of files inside the folders out of this metadata.&lt;/P&gt;&lt;P&gt;Would appreciate any help&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-all-files-in-a-team-drive/m-p/317344#M18819</guid>
      <dc:creator>Rashti</dc:creator>
      <dc:date>2019-05-29T09:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all files in a team drive</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-all-files-in-a-team-drive/m-p/317386#M18823</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders" target="_self"&gt;/2/sharing/list_folders&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders-continue" target="_self"&gt;/continue&lt;/A&gt;] endpoints will return the list of shared folders themselves. To list the actual contents of any particular folder(s), you should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;]. I&amp;nbsp;recommend reading &lt;A href="https://www.dropbox.com/developers/reference/content-access-guide" target="_self"&gt;the Content Access Guide&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 16:51:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-all-files-in-a-team-drive/m-p/317386#M18823</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-12T16:51:19Z</dc:date>
    </item>
  </channel>
</rss>

