<?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 Re: Download shared folders via /2/files/download call in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279888#M16803</link>
    <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] interface is paginated, and you're not guaranteed to get all of the results on the first page. You need to check the `has_more` value in the response, and call back to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;, if it's true. Keep calling back to retrieve all of the pages until `has_more` is false in order to get all of the entries. You can find more information in the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&amp;nbsp;documentation&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2018 15:10:34 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-06-11T15:10:34Z</dc:date>
    <item>
      <title>Download shared folders via /2/files/download call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279600#M16793</link>
      <description>&lt;P&gt;I've been calling&amp;nbsp;/2/files/list_folder&amp;nbsp;and then calling&amp;nbsp;&lt;SPAN&gt;/2/files/download&amp;nbsp;to download all files of a specific user. However, I noticed that I'm not able to download the content of the following types:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Team Folders&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shared Folders&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm not worried about the team folders but I would like the ability to download all content within the&amp;nbsp;shared folders (Most of these folders are shared between users and do not have a link created, for what it's worth). I've got the recursive param set to "true" and I see regular folders displaying child files but nothing appears for the shared folders other than the folder itself. I'm using the&amp;nbsp;DropBox Buisness API (Team member file access) for authentication. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279600#M16793</guid>
      <dc:creator>time4116</dc:creator>
      <dc:date>2019-05-29T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared folders via /2/files/download call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279888#M16803</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_self"&gt;/continue&lt;/A&gt;] interface is paginated, and you're not guaranteed to get all of the results on the first page. You need to check the `has_more` value in the response, and call back to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;, if it's true. Keep calling back to retrieve all of the pages until `has_more` is false in order to get all of the entries. You can find more information in the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&amp;nbsp;documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:10:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279888#M16803</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-11T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared folders via /2/files/download call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279938#M16816</link>
      <description>&lt;P&gt;Hmmm, I kept getting errors when I was trying to paiginate via PowerShell but didn't have any issues when I used requests via Python. Well, thanks for all your help Greg, really appreciate it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the PowerShell code I was using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$arg = '{"path": "","recursive": true,"include_media_info": false,"include_deleted": false,"include_has_explicit_shared_members": false,"include_mounted_folders": true}'


$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", $token)
$headers.Add("Dropbox-API-Select-User", $dbmid)
    
$Folders = Invoke-RestMethod -Uri https://api.dropboxapi.com/2/files/list_folder -Method Post -Headers $headers -ContentType "application/json; charset=utf-8" -body $arg
$allFiles = $folders.entries.path_display


while ($folders.has_more -eq "True") {
    $json = '{"cursor": "' + $folders.cursor + '"}'
    $json
    $folders = Invoke-RestMethod -Uri https://api.dropbox.com/2/files/list_folder/continue -Body $json -ContentType "application/json; charset=utf-8" `
        -Headers @{ Authorization = $token } -Method Post
    $allFiles += $folders.entries.path_display
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jun 2018 18:00:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-folders-via-2-files-download-call/m-p/279938#M16816</guid>
      <dc:creator>time4116</dc:creator>
      <dc:date>2018-06-11T18:00:37Z</dc:date>
    </item>
  </channel>
</rss>

