<?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: Set expiration of streamble link via /media in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125461#M3682</link>
    <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;CODE&gt;&lt;SPAN&gt;Anyone know how to get the time expires or increase it?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Aug 2015 22:51:54 GMT</pubDate>
    <dc:creator>Marjorie B.1</dc:creator>
    <dc:date>2015-08-24T22:51:54Z</dc:date>
    <item>
      <title>Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125458#M3679</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;

&lt;P&gt;I'm using the Dropbox PHP SDK to create a streamable link via the /media API reference, by calling createTemporaryDirectLink($path) in PHP.&lt;BR /&gt;
Is there any chance to influence the lifetime of the link I get? Or at least something to doublecheck how long the created link will be available?&lt;BR /&gt;
Would be awesome!&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Niko&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:43:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125458#M3679</guid>
      <dc:creator>Niko H.</dc:creator>
      <dc:date>2019-05-29T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125459#M3680</link>
      <description>&lt;P&gt;Okay, so I found out myself how to GET the expiration date. A quick look and crawl through the code made me write this little snippet:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;$response = $dbxClient-&amp;gt;doPost(&lt;BR /&gt;
    $dbxClient-&amp;gt;getHost()-&amp;gt;getApi(),&lt;BR /&gt;
    $dbxClient-&amp;gt;appendFilePath("1/media", $path)&lt;BR /&gt;
);&lt;/P&gt;

&lt;P&gt;if ($response-&amp;gt;statusCode === 404) return null;&lt;BR /&gt;
if ($response-&amp;gt;statusCode !== 200) throw RequestUtil::unexpectedStatus($response);&lt;/P&gt;

&lt;P&gt;$responseBody = json_decode($response-&amp;gt;body);&lt;BR /&gt;
echo $responseBody-&amp;gt;expires;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;So I learn, that expiration times are approx 4 hours. Fine! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;
But can I influence this? &lt;/P&gt;

&lt;P&gt;Niko&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2015 16:25:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125459#M3680</guid>
      <dc:creator>Niko H.</dc:creator>
      <dc:date>2015-04-19T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125460#M3681</link>
      <description>&lt;P&gt;The expiration time is always be 4 hours. There's currently no way to influence the expiration time. Why do you want to do that? Would you want to increase it or decrease it?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2015 22:17:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125460#M3681</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-04-19T22:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125461#M3682</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;CODE&gt;&lt;SPAN&gt;Anyone know how to get the time expires or increase it?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Aug 2015 22:51:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125461#M3682</guid>
      <dc:creator>Marjorie B.1</dc:creator>
      <dc:date>2015-08-24T22:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125462#M3683</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;CODE&gt;&lt;SPAN&gt;I would like to increase this average must be left open like 6 months , which in my case is photographs.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Aug 2015 22:53:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125462#M3683</guid>
      <dc:creator>Marjorie B.1</dc:creator>
      <dc:date>2015-08-24T22:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125463#M3684</link>
      <description>&lt;P&gt;The expiration information for a link from /media is returned in the "expires" key in the response:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#media" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#media&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's not currently possible to change that, but if you instead need a longer-lived link, you can use /shares instead:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#shares" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#shares&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Those links don't expire by default, though they can be revoked. They also point to the preview page by default, and not the file content itself, but you can modify them as necessary for that as shown here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/help/201" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/201&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 00:20:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125463#M3684</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-25T00:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125464#M3685</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;CODE&gt;&lt;SPAN&gt;Unfortunately I will have to use another cloud storage system software for my photo software , as must the link be available , via the share has not as I put the picture gallery within my system.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2015 07:57:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125464#M3685</guid>
      <dc:creator>Marjorie B.1</dc:creator>
      <dc:date>2015-08-25T07:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125465#M3686</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;CODE&gt;&lt;SPAN&gt;The api returns that URL to share https://db.tt/NInRpgMh I need the full Url when you click on that link it opens me this url https://www.dropbox.com/s/hjb603diqqv23hs/1.png?dl= 0 oh yes could use the raw = 1 , because my system is all automated and this minified link not working .&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:54:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125465#M3686</guid>
      <dc:creator>Marjorie B.1</dc:creator>
      <dc:date>2015-08-25T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125466#M3687</link>
      <description>&lt;P&gt;You can set the short_url parameter to false to get the long URL directly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 01:41:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125466#M3687</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-26T01:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125467#M3688</link>
      <description>&lt;P&gt;I think the only way I see based on your replays is to use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#shares" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#shares&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;to get a gallery view and than use curl and another function to find:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://photos-6.dropbox.com/t/2/AACKk8E6EbY4q7QQxK3VAefGpgmyZn0YShhAG_GXDK9UfQ/12/155246649/png/32x32/1/1442534400/0/2/1.png/CLnAg0ogASACIAMgBCAFIAYgBygBKAI/VmToeDlMlotDDm5rrixuPPeG0w7J908zXgiLIGCPEgM?size=2048x1536&amp;amp;amp;size_mode=2" rel="nofollow noreferrer"&gt;https://photos-6.dropbox.com/t/2/AACKk8E6EbY4q7QQxK3VAefGpgmyZn0YShhAG_GXDK9UfQ/12/155246649/png/32x32/1/1442534400/0/2/1.png/CLnAg0ogASACIAMgBCAFIAYgBygBKAI/VmToeDlMlotDDm5rrixuPPeG0w7J908zXgiLIGCPEgM?size=2048x1536&amp;amp;amp;size_mode=2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;from this page.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 05:52:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125467#M3688</guid>
      <dc:creator>Rafal R.1</dc:creator>
      <dc:date>2015-09-18T05:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125468#M3689</link>
      <description>&lt;P&gt;Rafal, it sounds like you mean you'd be scraping the web site. This isn't supported, and is likely to break. (It's also against the terms.)&lt;/P&gt;
&lt;P&gt;Instead, if you need a long lived direct link to a file, you should use the method described previously. Call /shares with short_url=false, and modify the link as shown in&amp;nbsp;&lt;A href="https://www.dropbox.com/help/201" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/201&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;If this isn't what you're trying to do, I&amp;nbsp;recommend opening a new thread with the specifics of your use case/question.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 05:57:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125468#M3689</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-09-18T05:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125469#M3690</link>
      <description>&lt;P&gt;Ah I did no know that. I will try the share option and convert the URL to the long expiry one. Do you know how long they stay alive for?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm basically trying to get a direct URL for an image which will last longer than 4h. 6 months - 1 year trough your API.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 06:17:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125469#M3690</guid>
      <dc:creator>Rafal R.1</dc:creator>
      <dc:date>2015-09-18T06:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set expiration of streamble link via /media</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125470#M3691</link>
      <description>&lt;P&gt;Shared links are valid until the user revokes them, either explicitly via&amp;nbsp;&lt;A href="https://www.dropbox.com/links" rel="nofollow noreferrer"&gt;https://www.dropbox.com/links&lt;/A&gt; or implicitly by moving or deleting the file.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 07:31:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Set-expiration-of-streamble-link-via-media/m-p/125470#M3691</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-09-18T07:31:06Z</dc:date>
    </item>
  </channel>
</rss>

