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 2017-02-08 16:51:39

Kenny
Member
Registered: 2017-02-08
Posts: 2

Downloads_GetLink - Link Expiration

Hi there,

we have been making API calls using URI in the following format:
example.co.uk/api/1.0/Downloads_GetLink/assetId=40159513205/sessionId=.../settings={permanent:true}

this generates download links that seem to expire after 7 days even though we have set the permanent flag to true.
we have configured the IMS account to Allow permanent Secure File Fetch URLs.

Is there a problem in the format of the URI we are using?

Looking forward to a reply.

Regards,
Kenny

Offline

#2 2017-02-08 16:55:00

ben
Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 65

Re: Downloads_GetLink - Link Expiration

Hi Kenny, the issue in your request is that the settings parameter requires JSON and {permanent:true} isn't valid JSON. It works as a javascript literal but to be valid json the object keys need to be quoted. i.e. {"permanent":true}

hth
Ben

Offline

#3 2017-02-08 18:41:27

Kenny
Member
Registered: 2017-02-08
Posts: 2

Re: Downloads_GetLink - Link Expiration

Thanks for the response ben, will try that

Offline

Board footer