<?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 file from bussiness teams in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729507#M32272</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt;&amp;nbsp;Здравко is correct; to access the contents of the team space, you'll need to set the Dropbox-API-Path-Root header, which you can do by using the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank"&gt;with_path_root&lt;/A&gt; method in &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank"&gt;the Dropbox Python SDK&lt;/A&gt;. That way, you wouldn't need to use 'shared_link' at all. You can find more information on how to access team content in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 18:03:25 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-11-14T18:03:25Z</dc:date>
    <item>
      <title>download file from bussiness teams</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729307#M32255</link>
      <description>&lt;P&gt;So ihave a bussines teams folder inside i have some .mdb file that want to download automatic, but the problem is that i cant access to the bussines folder so i created a shared link&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;shared_link&lt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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;entry&lt;/SPAN&gt;&lt;SPAN&gt;.name &lt;/SPAN&gt;&lt;SPAN&gt;==&lt;/SPAN&gt; &lt;SPAN&gt;"asd.mdb"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;files_download&lt;/SPAN&gt;&lt;SPAN&gt;(entry.path_display&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;so i have an error downloading it and after i see the entry i have this in the metadata&amp;nbsp;&amp;nbsp;path_display=NOT_SET, path_lower=NOT_SET&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;so i inserted the path manually for testing and cant download.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;maybe there is somehow i can download a file from bussiness teams of my account ?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Nov 2023 02:01:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729307#M32255</guid>
      <dc:creator>dmartinez</dc:creator>
      <dc:date>2023-11-14T02:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: download file from bussiness teams</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729427#M32265</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;By default you can access only files/folders residing within your private user folder on Business account with space configuration - nothing outside. In this context:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;so i have an error downloading it and after i see the entry i have this in the metadata&amp;nbsp;&amp;nbsp;path_display=NOT_SET, path_lower=NOT_SET&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;... is something normal. 🤷&lt;/P&gt;&lt;P&gt;To be able access there you need to set account root for the API calls (not the default - your member's folder). In Python you can do it using '&lt;A title="Creates a clone of the Dropbox instance with the Dropbox-API-Path-Root header" href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank" rel="noopener"&gt;with_path_root&lt;/A&gt;' method. In such a way you can access there (and download) directly, without using links. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Another alternative way (using links) is listing the folder link's content and get links pointing contained files. In such a way you're not restricted to link coming from you (your account) only. This way is not officially supported by Dropbox in spite accessible for years. For more info take a look &lt;A href="https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Downloading-large-amount-of-files-to-my-web-application/m-p/725217#M3724" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Once you have a file link, direct download is possible (either using Dropbox API or not).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 13:58:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729427#M32265</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-14T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: download file from bussiness teams</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729507#M32272</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt;&amp;nbsp;Здравко is correct; to access the contents of the team space, you'll need to set the Dropbox-API-Path-Root header, which you can do by using the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank"&gt;with_path_root&lt;/A&gt; method in &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.with_path_root" target="_blank"&gt;the Dropbox Python SDK&lt;/A&gt;. That way, you wouldn't need to use 'shared_link' at all. You can find more information on how to access team content in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;the Team Files Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:03:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-from-bussiness-teams/m-p/729507#M32272</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-14T18:03:25Z</dc:date>
    </item>
  </channel>
</rss>

