<?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: How do I create a shared link with expiry date from API (Python SDK)? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49960#M1542</link>
    <description>&lt;P&gt;Sure, this &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings" target="_blank" rel="nofollow noreferrer"&gt;creates a shared link&lt;/A&gt; for a file&amp;nbsp;and also supplies a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.RequestedVisibility" target="_blank" rel="nofollow noreferrer"&gt;requested visibility&lt;/A&gt; and expiration in the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.SharedLinkSettings" target="_blank" rel="nofollow noreferrer"&gt;settings&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;import datetime&lt;BR /&gt;&lt;BR /&gt;import dropbox&lt;BR /&gt;&lt;BR /&gt;dbx = dropbox.Dropbox("&amp;lt;ACCESS_TOKEN&amp;gt;")&lt;BR /&gt;&lt;BR /&gt;expires = datetime.datetime.now() + datetime.timedelta(days=30)&lt;BR /&gt;requested_visibility = dropbox.sharing.RequestedVisibility.team_only&lt;BR /&gt;desired_shared_link_settings = dropbox.sharing.SharedLinkSettings(requested_visibility=requested_visibility, expires=expires)&lt;BR /&gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/test.txt", settings=desired_shared_link_settings)&lt;BR /&gt;&lt;BR /&gt;print(shared_link_metadata)&lt;/PRE&gt;
&lt;P&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the access token.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.SharedLinkSettings" target="_blank" rel="nofollow noreferrer"&gt;dropbox.sharing.SharedLinkSettings&lt;/A&gt; constructor also takes a link_password parameter.&lt;/P&gt;</description>
    <pubDate>Sat, 14 May 2016 03:22:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-05-14T03:22:50Z</dc:date>
    <item>
      <title>How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49952#M1534</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs/python#DropboxClient.share" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/core/docs/python#DropboxClient.share&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49952#M1534</guid>
      <dc:creator>Florian K.8</dc:creator>
      <dc:date>2019-05-29T09:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49953#M1535</link>
      <description>&lt;P&gt;The Dropbox API doesn't currently offer a way to set a custom expiration on shared links, but I'll be sure to pass this along as a feature request.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2015 02:16:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49953#M1535</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-11T02:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49954#M1536</link>
      <description>&lt;P&gt;what about setting the password on shared links ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:33:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49954#M1536</guid>
      <dc:creator>Peter K.11</dc:creator>
      <dc:date>2015-12-16T21:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49955#M1537</link>
      <description>&lt;P&gt;That's also not currently available, but I'll pass that along as a request as well.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:19:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49955#M1537</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-17T02:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49956#M1538</link>
      <description>&lt;P&gt;Is there any expected/known timeline for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 16:44:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49956#M1538</guid>
      <dc:creator>Daniel B.70</dc:creator>
      <dc:date>2016-02-25T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49957#M1539</link>
      <description>&lt;P&gt;This is now possible using the&amp;nbsp;/sharing/create_shared_link_with_settings endpoint on API v2:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In the latest version of the Python SDK, that's the&amp;nbsp;sharing_create_shared_link_with_settings method:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox-sdk-python.readthedocs.org/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings" rel="nofollow noreferrer"&gt;https://dropbox-sdk-python.readthedocs.org/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 01:30:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49957#M1539</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-02-26T01:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49958#M1540</link>
      <description>&lt;P&gt;Oh! great, I was looking at v1 docs. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 15:35:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49958#M1540</guid>
      <dc:creator>Daniel B.70</dc:creator>
      <dc:date>2016-02-26T15:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49959#M1541</link>
      <description>&lt;P&gt;sorry to revive this, but can someone show an example of how to pass settings here? Like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbx = dropbox.Dropbox("KEY")&lt;BR /&gt;dbx.users_get_current_account()&lt;BR /&gt;print dbx.sharing_create_shared_link_with_settings('link/to/share', ????)&lt;/P&gt;
&lt;P&gt;I'm not sure how to pass the settings, like&amp;nbsp;requested_visibility or&amp;nbsp;link_password.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:44:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49959#M1541</guid>
      <dc:creator>Russell A.1</dc:creator>
      <dc:date>2016-05-14T01:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49960#M1542</link>
      <description>&lt;P&gt;Sure, this &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.sharing_create_shared_link_with_settings" target="_blank" rel="nofollow noreferrer"&gt;creates a shared link&lt;/A&gt; for a file&amp;nbsp;and also supplies a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.RequestedVisibility" target="_blank" rel="nofollow noreferrer"&gt;requested visibility&lt;/A&gt; and expiration in the &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.SharedLinkSettings" target="_blank" rel="nofollow noreferrer"&gt;settings&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;import datetime&lt;BR /&gt;&lt;BR /&gt;import dropbox&lt;BR /&gt;&lt;BR /&gt;dbx = dropbox.Dropbox("&amp;lt;ACCESS_TOKEN&amp;gt;")&lt;BR /&gt;&lt;BR /&gt;expires = datetime.datetime.now() + datetime.timedelta(days=30)&lt;BR /&gt;requested_visibility = dropbox.sharing.RequestedVisibility.team_only&lt;BR /&gt;desired_shared_link_settings = dropbox.sharing.SharedLinkSettings(requested_visibility=requested_visibility, expires=expires)&lt;BR /&gt;&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/test.txt", settings=desired_shared_link_settings)&lt;BR /&gt;&lt;BR /&gt;print(shared_link_metadata)&lt;/PRE&gt;
&lt;P&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the access token.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.sharing.SharedLinkSettings" target="_blank" rel="nofollow noreferrer"&gt;dropbox.sharing.SharedLinkSettings&lt;/A&gt; constructor also takes a link_password parameter.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 03:22:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49960#M1542</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-14T03:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a shared link with expiry date from API (Python SDK)?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49961#M1543</link>
      <description>&lt;P&gt;okay that's great. &amp;nbsp;thank you so much. &amp;nbsp;that really put that in perspective!&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 04:13:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-create-a-shared-link-with-expiry-date-from-API-Python/m-p/49961#M1543</guid>
      <dc:creator>Russell A.1</dc:creator>
      <dc:date>2016-05-14T04:13:47Z</dc:date>
    </item>
  </channel>
</rss>

