You are not logged in.
Hi,
We're just starting out using Third Light via the API, our client wants to display selected images from Third Light on their website. So we're using the API to get links to images, for example:
https://d1br04p5jdm344.cloudfront.net/t … qwyy-FwDKB
Strangely though, these image links only seem to work for a few days. When I first got the image URL from the API it was:
https://d1br04p5jdm344.cloudfront.net/t … Zwyy-FwDKJ
But this link stopped working after four days, and I when I interrogated the API it gave me the new, slightly different URL.
Another example would be:
https://d1br04p5jdm344.cloudfront.net/t … gWFHniWKQY
This URL also stopped working after a few days, and the API now reports that the image URL is:
https://d1br04p5jdm344.cloudfront.net/t … 3WFHniWKQ4
Am I doing something wrong, or do these URLs expire? I tried posting this question to the developer exchange but it said I can't post links, so my question wouldn't make any sense.
Thanks in advance,
Mat.
Offline
Hi Mat,
Thumbnail URLs - ones of the form t.tlx?<key> - do expire (the issued URL changes daily, and each is valid for approximately 4 days), so they are not suitable to request and then embed in a static external system. If you have a mechanism to update the URLs, you can safely cache and reuse them for a couple of days.
In the Downloads API, the GetLink method does optionally support creating non-expiring URLs. For your use case this is probably the most suitable choice.
Dominic
Offline
Thanks for the quick reply Dominic, it's much appreciated. I'll give that a go and let you know how I get on.
Offline
That's working perfectly! Thanks again for your help, Dominic :)
Offline