We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Niko H.
11 years agoNew member | Level 1
Set expiration of streamble link via /media
Hey there,
I'm using the Dropbox PHP SDK to create a streamable link via the /media API reference, by calling createTemporaryDirectLink($path) in PHP.
Is there any chance to influence the lifeti...
Greg-DB
Dropbox Community Moderator
11 years agoThe expiration information for a link from /media is returned in the "expires" key in the response:
https://www.dropbox.com/developers/core/docs#media
It's not currently possible to change that, but if you instead need a longer-lived link, you can use /shares instead:
https://www.dropbox.com/developers/core/docs#shares
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:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!