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-03-24 17:59:23

Tilak
Member
Registered: 2017-03-03
Posts: 3

How to restrict Image size in URL through Downloads.GetMultiLink API

HI ,
I have a requirement from client to restrict the image resolution to 256*256 , when ever thirdparties tries to down load image using link supplied to them by Downloads.GetMultiLink API.

Following is syntax iam using through postman:
{
                  "apiVersion": "1.0.1",
                  "sessionId": "XXXXXXX",
                  "action": "Downloads.GetMultiLink",
                  "inParams": {
                                    "assetIds": [
                                                      "40813251296","40813250490","40813250573","40865291481","40813252718","40865290754"
                                                     
                                    ]
                  }
}

I have masked session id.

Could you please suggest a options in this regards.
Regards,
Tilak

Offline

#2 2017-03-27 10:28:21

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

Re: How to restrict Image size in URL through Downloads.GetMultiLink API

Hi Tilak,

You can provide the same settings to GetMultiLink() as you can to GetLink(). i.e. add a settings hash as follows:

{
                  "apiVersion": "1.0.1",
                  "sessionId": "XXXXXXX",
                  "action": "Downloads.GetMultiLink",
                  "inParams": {
                                    "assetIds": [
                                                      "40813251296","40813250490","40813250573","40865291481","40813252718","40865290754"
                                                      
                                    ],
                                    "settings": {
                                                     "settingKey": <settingValue>,
                                                     etc.
                                    }
                  }
}

Replacing settingKey and settingValue with one or more of the settings described under GetLink().

The Downloads.GetMultiLink() and Downlaods.GetLink() API calls ultimately provide a "File Fetch URL" for a particular file. The options are described in more detail here:
https://www.thirdlight.com/docs/display … ile+to+URL

hth
Ben

Offline

#3 2017-03-27 12:57:59

Tilak
Member
Registered: 2017-03-03
Posts: 3

Re: How to restrict Image size in URL through Downloads.GetMultiLink API

Thanks Ben

Issue got resolved, using you suggestion
Regards,
Tilak

Offline

Board footer