Support

Home Forums Event Espresso Premium Exact syntax for a REST API query

Exact syntax for a REST API query

Posted: November 19, 2016 at 11:48 pm


Diane Kuhler

November 19, 2016 at 11:48 pm

Hi

I am having trouble getting the syntax correct for a particular query. I want to find all of the events that occur during the current week. Can you give me an example of a query to find the events between two dates & times

Thanks


Josh

  • Support Staff

November 21, 2016 at 5:47 pm

Hi Diane,

Here’s one example:

http://yoursite.com/wp-json/ee/v4.8.36/events?where[Datetime.DTT_EVT_start][0]=BETWEEN&where[Datetime.DTT_EVT_start][1][]=2016-11-21T23:19:57&where[Datetime.DTT_EVT_start][1][]=2016-11-28T23:19:57

The support post ‘Exact syntax for a REST API query’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso