【发布时间】:2023-03-21 02:11:01
【问题描述】:
我一直在使用它来尝试了解如何获取有关参加活动的人员的信息列表。
https://developers.google.com/google-apps/calendar/v3/reference/events/get#response
目前我正在使用下面的代码,它为我提供了事件名称和摘要列表
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 {
}
我不确定如何使用这些数据来请求有关活动参与者电子邮件的更多信息,因为最终我想向列出的某些参与者发送电子邮件。以前从未使用过谷歌日历 API。任何帮助表示赞赏。
【问题讨论】:
标签: javascript calendar google-api google-calendar-api