我有一个 Java Spring API,我想在其中集成 Google 日历。
任务:
我在这里试过这个例子:
https://developers.google.com/google-apps/calendar/quickstart/java
但我认为这不是正确的,因为我以用户身份进行身份验证 - 或者我是否需要通过电子邮件向他们发送邀请?
任何人都可以指出我正确的方向吗?
最佳答案
尝试将通知设置为 true。
sendNotifications
- Whether to send notifications about the creation of the new event. Optional. The default is False.
在试用此 API(事件:插入)中:
我对 java 不是很熟悉,但尝试按照相关的 SO post 中的建议使用此代码。
Event createdEvent = calendario.events().insert("some-mail-from-google0@group.calendar.google.com", event).setSendNotifications(true).execute();
希望这可以帮助。
关于java - 使用谷歌日历 API 发送邀请,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43167978/