<?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: create_shared_link_with_settings with expires in minutes in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180342#M7370</link>
    <description>&lt;P&gt;Setting the expiration to 1 minute in the future is working fine for me. Can you share your code and the error you're getting?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 10:08:13 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-08-02T10:08:13Z</dc:date>
    <item>
      <title>create_shared_link_with_settings with expires in minutes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180341#M7369</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;How to expire a shared link in 1 minutes? I'm trying but doesn't work, when i try with days works properly.&lt;/P&gt;
&lt;P&gt;Sorry for my english&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180341#M7369</guid>
      <dc:creator>Joel T.11</dc:creator>
      <dc:date>2019-05-29T09:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: create_shared_link_with_settings with expires in minutes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180342#M7370</link>
      <description>&lt;P&gt;Setting the expiration to 1 minute in the future is working fine for me. Can you share your code and the error you're getting?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 10:08:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180342#M7370</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-02T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: create_shared_link_with_settings with expires in minutes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180343#M7371</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm getting this error:&lt;/P&gt;
&lt;PRE&gt;dropbox.exceptions.ApiError: ('b5fdf345d4f997fe803468c16f5ceba0', CreateSharedLinkWithSettingsError('settings_error', SharedLinkSettingsError('invalid_settings', None)))&lt;/PRE&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;import datetime&lt;BR /&gt;import dropbox&lt;BR /&gt;&lt;BR /&gt;dbx = dropbox.Dropbox(APP_TOKKEN)&lt;BR /&gt;expires = datetime.datetime.now() + datetime.timedelta(minutes=1)&lt;BR /&gt;shared_link_settings = dropbox.sharing.SharedLinkSettings(expires=expires)&lt;BR /&gt;shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/test.txt", settings=shared_link_settings)&lt;BR /&gt;print(shared_link_metadata)&lt;/PRE&gt;
&lt;P&gt;Thanks for helping me&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 18:34:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180343#M7371</guid>
      <dc:creator>Joel T.11</dc:creator>
      <dc:date>2016-08-02T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: create_shared_link_with_settings with expires in minutes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180344#M7372</link>
      <description>&lt;P&gt;Thanks Joel, that's helpful. The API expects UTC, so you should instead do:&lt;/P&gt;
&lt;PRE&gt;expires = datetime.datetime.utcnow() + datetime.timedelta(minutes=1)&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 23:30:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180344#M7372</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-02T23:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: create_shared_link_with_settings with expires in minutes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180345#M7373</link>
      <description>&lt;P&gt;Its works!&lt;/P&gt;
&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:19:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/create-shared-link-with-settings-with-expires-in-minutes/m-p/180345#M7373</guid>
      <dc:creator>Joel T.11</dc:creator>
      <dc:date>2016-08-03T06:19:13Z</dc:date>
    </item>
  </channel>
</rss>

