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-06-13 20:49:03

LyssaLionheart
Member
Registered: 2017-06-13
Posts: 12

UploadDate Range

Hello,

I am fairly new to working with Third Light. I am trying to get a group of image files between two time ranges. I tried to use IS AFTER and IS BEFORE in the same query, but the API does not seem to like that.

{"apiVersion": "1.0",
    "action": "Search.AdvancedSearch",
    "inParams": {"query":[{"fieldId":19,"conditionId":-1,"value":"-1"},{"fieldId":119,"conditionId":9,"value":"1496296801"},{"fieldId":119,"conditionId":10,"value":"1496383201"}],
    "exactMatches":"false",
    "fields":{"metadata":"true"}
    }
}

Is there a way to go about this?

Thanks,
Melissa

Offline

#2 2017-06-19 10:11:34

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

Re: UploadDate Range

Hi Melissa,

I'd be interested to know what error you get back. That being said, I think all that is wrong is you seem to have an empt search condition. i.e. change this:

 "inParams": {"query":[{"fieldId":19,"conditionId":-1,"value":"-1"},{"fieldId":119,"conditionId":9,"value":"1496296801"},{"fieldId":119,"conditionId":10,"value":"1496383201"}],

to this:

 "inParams": {"query":[{"fieldId":119,"conditionId":9,"value":"1496296801"},{"fieldId":119,"conditionId":10,"value":"1496383201"}],

Please let me know how you get on.
Ben

Offline

#3 2017-06-19 16:37:07

LyssaLionheart
Member
Registered: 2017-06-13
Posts: 12

Re: UploadDate Range

Thanks Ben! That worked. I guess I assumed I needed to include the all images search parameter as well when working with the advanced search.

Melissa

Offline

Board footer