I am trying to develop a SharePoint Online Add-in. I have a simple query that seems to get all of the Events the current user is authorized to see [1]:
var getEventsURL =
"https://" + hostName + "/" + theSitePath +
"/_api/search/query?" +
"querytext='contenttype:Event'";
I run that query with a simple $.ajax call. When the results come back, I get an array of rows in data.d.query.PrimaryQueryResult.ReleventResults.TableRows.results [2]. When I open one of these rows, I see yet another array of 48 values in Cells.results that contains all of the data fields for that row.
In column 3, I see the Title for the current Event. Also in column 7, I see the Description [3]. That's very useful to me but I also need to find the StartDate and EndDate of the Event. Unfortunately, I've looked all through the 48 returned values for the currently iterated Event and I can't find StartDate or EndDate anywhere.
After running a Search Query of the form
https://[serverName]/_api/search/query?queryText='contenttype:Event';
how do I find the DateTimes at which each Event begins and ends?
[1] - Accessing list data in multiple site collections
[2] - http://michaelsoriano.com/understanding-sharepoint-rest-api-part-1-selecting-items/
[3] - Column numbers are zero based