Google日历活动创建发送通知 [英] Google Calendar Event Creation send Notifications

查看:132
本文介绍了Google日历活动创建发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道如何在谷歌日历中通知事件创建者。当我创建活动时,我可以根据需要发送活动。但是,当我使用JavaScript客户端库的api创建事件。我没有收到电子邮件通知。

I was wondering if anyone knew how to notifiy attendees upon event creation in google calendar. When I create the event manualy, I can send an event as I wish. But when I create the event using the api with the javascript client library. I do not receive email notifications.

以下是我的创建代码:

Here is my code for creation :

var request = gapi.client.calendar.events.insert({
    'calendarId': '***@***.com',
    'resource': resource
});
request.execute(function() {
});

我的资源变量已经定义,并且事件成功添加到日历中,但没有与会者收到任何邀请。如果我在创建日历后参加了日历上的活动,那么与会者就在那里。

My resource variable is already defined and the event is added successfuly to the calendar, but no attendees receive any invitations. And if I go into the event on the calendar after creating it, the attendees are there.

请求中是否有任何内容缺失,以便与会者在创建时收到通知。

Is there anything I am missing in the request to make it so that the attendees receive notifications upon the creation.

推荐答案

参加者数组有一个responseStatus,您可以将其设置为:
needsAction - 与会者尚未回复邀请。
谢绝 - 与会者拒绝了邀请。
暂定 - 与会者暂时接受了邀请。
accepted - 与会者已接受邀请。

The attendees array has a responseStatus that you can set to: "needsAction" - The attendee has not responded to the invitation. "declined" - The attendee has declined the invitation. "tentative" - The attendee has tentatively accepted the invitation. "accepted" - The attendee has accepted the invitation.

var request = gapi.client.calendar.events.insert({
  'calendarId': '***@***.com',
  'resource': resource,
  'attendees': [{'email':'example@example.com','responseStatus':'needsAction'}]
  }
});
request.execute(function() {
});

这篇关于Google日历活动创建发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆