我正在使用谷歌日历API发送邀请,但使用谷歌日历api时出现问题,弹出通知即将发布,但电子邮件通知不会发送电子邮件提醒通知。
我正在使用以下代码。
var request = gapi.client.request({
'path': '/calendar/v3/calendars/primary/events?alt=json',
'method': 'POST',
'headers': {
'Authorization': 'Bearer ' + this.getitem
},
"sendNotifications": true,
'body': JSON.stringify({
"summary": this.calendarEvent.name,
"location": this.calendarEvent.location,
"description": this.calendarEvent.description,
"start": {
"dateTime": startDateTimeISO,
"timeZone": "Asia/Kolkata"
},
"end": {
"dateTime": enddateTimeISO,
"timeZone": "Asia/Kolkata"
},
"recurrence": [
"RRULE:FREQ=DAILY;COUNT=1"
],
"attendees": "...@gmail.com",
"reminders": {
"useDefault": false,
"overrides": [
{
"method": "email",
"minutes": 1440
},
{
"method": "popup",
"minutes": 10
}
]
}
}