You are not logged in.
Pages: 1
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
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
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
Pages: 1