Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2019-03-21 15:38:14

iteracy
Member
Registered: 2019-02-28
Posts: 12

API - do links to images expire?

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

#2 2019-03-21 16:30:51

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: API - do links to images expire?

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

#3 2019-03-22 14:58:25

iteracy
Member
Registered: 2019-02-28
Posts: 12

Re: API - do links to images expire?

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

#4 2019-03-22 15:29:14

iteracy
Member
Registered: 2019-02-28
Posts: 12

Re: API - do links to images expire?

That's working perfectly! Thanks again for your help, Dominic :)

Offline

Board footer