<?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 Permanent sharing links via python api OR expiring sharing links via js in wix api in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475439#M1614</link>
    <description>&lt;P&gt;I have a system by which I load audio files to dropbox via python, and&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; of these files need to be accessable&amp;nbsp;to anyone with the shared link, thus allowing me to give my site's visitors access to the lectures in my dropbox folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, I'd like to create a permanent link for each file that I add to a collection on my site via a post-request, and I can then just use this url whenever necessary as queried by the site visitor. Is this possible? A permanent link to be saved for future reference?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've search far and wide, and haven't found a way to do this. So - on to my second best option:&lt;/P&gt;
&lt;P&gt;Assuming I save the necessary meta-data to my site's collection, maybe I can then use some backend javascript in order to create and use the shared link. How should I go about this?&lt;/P&gt;
&lt;P&gt;Can I use the key and secret I'm allready using in my python script?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Does one use a url-fetch such as&amp;nbsp;&lt;A target="_blank" rel="noopener"&gt;https://api.dropbox.com/1/shares/&amp;lt;root&amp;gt;/&amp;lt;path&lt;/A&gt;&amp;gt;&amp;nbsp;?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Or does one need to call&amp;nbsp;&lt;SPAN&gt;sharingCreateSharedLinkWithSettings?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;The site is a Wix created site in case it matters...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Any pointers would be greatly appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 10:05:51 GMT</pubDate>
    <dc:creator>autozoom3125</dc:creator>
    <dc:date>2020-12-03T10:05:51Z</dc:date>
    <item>
      <title>Permanent sharing links via python api OR expiring sharing links via js in wix api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475439#M1614</link>
      <description>&lt;P&gt;I have a system by which I load audio files to dropbox via python, and&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; of these files need to be accessable&amp;nbsp;to anyone with the shared link, thus allowing me to give my site's visitors access to the lectures in my dropbox folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, I'd like to create a permanent link for each file that I add to a collection on my site via a post-request, and I can then just use this url whenever necessary as queried by the site visitor. Is this possible? A permanent link to be saved for future reference?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've search far and wide, and haven't found a way to do this. So - on to my second best option:&lt;/P&gt;
&lt;P&gt;Assuming I save the necessary meta-data to my site's collection, maybe I can then use some backend javascript in order to create and use the shared link. How should I go about this?&lt;/P&gt;
&lt;P&gt;Can I use the key and secret I'm allready using in my python script?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Does one use a url-fetch such as&amp;nbsp;&lt;A target="_blank" rel="noopener"&gt;https://api.dropbox.com/1/shares/&amp;lt;root&amp;gt;/&amp;lt;path&lt;/A&gt;&amp;gt;&amp;nbsp;?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Or does one need to call&amp;nbsp;&lt;SPAN&gt;sharingCreateSharedLinkWithSettings?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;The site is a Wix created site in case it matters...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Any pointers would be greatly appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 10:05:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475439#M1614</guid>
      <dc:creator>autozoom3125</dc:creator>
      <dc:date>2020-12-03T10:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Permanent sharing links via python api OR expiring sharing links via js in wix api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475705#M1615</link>
      <description>&lt;P&gt;First, for reference, that /1/shares URL is part of API v1, which is retired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_self"&gt;the Python SDK&lt;/A&gt; and want non-expiring shared links, you should use&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;. That allows you to programmatically create &lt;A href="https://help.dropbox.com/files-folders/share/view-only-access" target="_self"&gt;shared links&lt;/A&gt; that don't expire by default (but can be revoked by the user/app) for any file or folder. You can store and re-use these links as desired. You can also modify them if needed, for different behaviors such as direct file content access or download, as &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;documented here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:44:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475705#M1615</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-03T15:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Permanent sharing links via python api OR expiring sharing links via js in wix api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475714#M1616</link>
      <description>&lt;P&gt;Thanks for the reply! I was under the imression that creating links via&amp;nbsp;sharing_create_shared_link_with_settings creates expiring links.&lt;/P&gt;&lt;P&gt;But if they're permanent then that solves so much trouble I can't even explain!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:57:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475714#M1616</guid>
      <dc:creator>autozoom3125</dc:creator>
      <dc:date>2020-12-03T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Permanent sharing links via python api OR expiring sharing links via js in wix api</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475717#M1617</link>
      <description>&lt;P&gt;No problem, I'm happy to help. For reference, &lt;A href="https://help.dropbox.com/files-folders/share/link-expiration" target="_blank"&gt;some account types have the option to set an expiration on shared links&lt;/A&gt;, via&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/sharing.html#dropbox.sharing.SharedLinkSettings.expires" target="_blank"&gt;SharedLinkSettings.expires&lt;/A&gt;, but by default there's no expiration.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:00:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Permanent-sharing-links-via-python-api-OR-expiring-sharing-links/m-p/475717#M1617</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-03T16:00:51Z</dc:date>
    </item>
  </channel>
</rss>

