<?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 Using API to get a list of *direct* url's to images in a folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/389583#M21585</link>
    <description>&lt;P&gt;We're building an app in Python that will need to retrieve a list of every file in a particular folder containing jpg images, and for each image, we need to get a &lt;STRONG&gt;direct http url&lt;/STRONG&gt; that can be used in an html img src tag.&amp;nbsp; We also need the original image file name (the name humans see when the view a list of files e.g. image1.jpg)&lt;/P&gt;&lt;P&gt;When testing the api using list_folder, we get back the original file names and other metadata like the file id.&amp;nbsp; But how do we create a url for each file?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like Dropbox is preventing or discouraging this practice perhaps to reduce load on their servers from people hosting images used on high-traffic sites.&amp;nbsp; But we're not doing that.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 00:09:34 GMT</pubDate>
    <dc:creator>bethesda4</dc:creator>
    <dc:date>2020-01-15T00:09:34Z</dc:date>
    <item>
      <title>Using API to get a list of *direct* url's to images in a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/389583#M21585</link>
      <description>&lt;P&gt;We're building an app in Python that will need to retrieve a list of every file in a particular folder containing jpg images, and for each image, we need to get a &lt;STRONG&gt;direct http url&lt;/STRONG&gt; that can be used in an html img src tag.&amp;nbsp; We also need the original image file name (the name humans see when the view a list of files e.g. image1.jpg)&lt;/P&gt;&lt;P&gt;When testing the api using list_folder, we get back the original file names and other metadata like the file id.&amp;nbsp; But how do we create a url for each file?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like Dropbox is preventing or discouraging this practice perhaps to reduce load on their servers from people hosting images used on high-traffic sites.&amp;nbsp; But we're not doing that.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 00:09:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/389583#M21585</guid>
      <dc:creator>bethesda4</dc:creator>
      <dc:date>2020-01-15T00:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using API to get a list of *direct* url's to images in a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/389713#M21588</link>
      <description>&lt;P&gt;To get a direct link to a file via the API you can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;the&amp;nbsp;/2/files/get_temporary_link endpoint&lt;/A&gt;. In &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_self"&gt;the official&amp;nbsp;Dropbox API v2 Python SDK&lt;/A&gt;, that's available as&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_get_temporary_link" target="_self"&gt;files_get_temporary_link&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that those links are only valid for four hours. If you need longer-lived links, you can instead use&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; /&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings" target="_self"&gt;sharing_create_shared_link_with_settings&lt;/A&gt;. Those point to the HTML preview page by default, but you can &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;modify them for direct access as documented in this help center article&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Also, be aware that these links are subject to &lt;A href="https://help.dropbox.com/files-folders/share/banned-links" target="_self"&gt;the bandwidth limits documented here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:04:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/389713#M21588</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-15T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using API to get a list of *direct* url's to images in a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/390092#M21601</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:02:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-API-to-get-a-list-of-direct-url-s-to-images-in-a-folder/m-p/390092#M21601</guid>
      <dc:creator>bethesda4</dc:creator>
      <dc:date>2020-01-16T20:02:30Z</dc:date>
    </item>
  </channel>
</rss>

