I have been using this to try and work out how to get a list of information about people attending an event.
https://developers.google.com/google-apps/calendar/v3/reference/events/get#response
Currently I am using the code to below which provides me with a list of event names and summarys
var request = gapi.client.calendar.events.list({
'calendarId': 'primary',
'timeMin': (new Date()).toISOString(),
'showDeleted': false,
'singleEvents': true,
'maxResults': 10,
'orderBy': 'startTime'
});
var select = document.getElementById("selectNumber");
var options = resp.items;
if (options.length > 0) {
for (g = 0; g < options.length; g++) {
var opt = options[g];
var el = document.createElement("option");
el.textContent = opt.id;
el.value = opt.id;
select.appendChild(el);
}
}
else {
}
I am unsure how to use this data in order to request more information about an event attendees email because ultimately i want to send an email to some of the attendess listed. Never worked with the google calendar api before. Any help appreciated.