I'm trying to automate a search using the REST API to provide a list of events that occur x seconds before and after a specific event. Similar to the nearby events functionality but I won't be using the same search criteria.
Here's what I'm shooting for. I've got the first two steps down but I'm not sure how handle the time window. Any suggestions?
Search using REST API for specific event_id
Extract username and time from event
Use extracted fields to perform search for events for specified user occurring x seconds before and after extracted time
I worked out my issue. The request to the API needed the latest_time and earliest_time values and I was providing an absolute time. I needed to use the time_format in my request to indicate the format I was using for my absolute time.