I am trying to use REST API for searching through messages. I need to search message containing some string. I followed the document, created the token and able to access APIs.
I dont know how exactly use this APIs. Should I need to create query first or something else? Can someone give me example endpoint so that I can search messages with any string.
I have been using /Legacy/Search/Absolute endpoint to search through messages, but it has been deprecated and it is going to be disabled as with 4.0.0. Currently you need to provide lucene query, timerange start/end as well as comma separated list of fields to return:
Unfortunately for us - some changes have been made there, namely the response content type, has been changed to plaintext/csv and fields variable became a requirement (previously it returned all fields by default).
I’ve been able to find this pull request in GL2 repo:
Unfortunately I was not able to find any documentation nor examples for Views API and I am as confused as you currently are.
Is there anyone that could explain and/or provide us with working examples? How can I search for particular query within a specified time frame using Views API?
Looking forward to your reply.
Edit: Forgot to add - I am currently on 3.3.6 and I am affraid of upgrading it further. It already made our integration non-functional for the time being.
To anyone interested: documentation is lacking a proper description and API responses are somewhat enigmatic, but I managed to make it work. If you would like to search for messages using aforementioned endpoint, heres the json body you need to use: