[英]Send an email with Google Calendar Api
I'm using Google Calendar Api to create an event in a gmail calendar. 我正在使用Google Calendar Api在gmail日历中创建事件。 The event is well created and I have it in my gmail calendar but I would like that the attendees receive an email to accept or decline the meeting. 该活动创建得很好,我将其保存在gmail日历中,但我希望与会者收到一封电子邮件以接受或拒绝会议。 Is anyone know how to do that ? 有人知道该怎么做吗?
My back-end is coded in nodeJS. 我的后端是用nodeJS编码的。
Here is the characteristics of my event : 这是我活动的特点:
var event = {
'summary': 'Tes Calendar',
'location': 'Auditorium',
"sendNotifications": true,
'description': 'test calendar invitation',
'start': {
'dateTime': '2017-08-31T09:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'end': {
'dateTime': '2017-08-31T17:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'attendees': [
{'email': '********@symphony.com'},
{'email': '********@gmail.com'},
],
}; };
Thank you and have a great day ! 谢谢你,祝你有美好的一天! Margot 马戈特
When you call the insert method you must put the sendNotifications parameter like this : 调用insert方法时,必须像下面这样放置sendNotifications参数:
var request = gapi.client.calendar.events.insert({
'calendarId': 'primary',
'resource': event,
'sendNotifications' : true
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.