本文介绍了使用Google Calendar API发送邀请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Java Spring API,我想在其中集成Google日历。
任务:
- 基本为两个参与者(用户)创建一个活动,并向他们发送邀请,并带有接受/拒绝的选项(标准GCalendar邀请)
我在这里尝试过以下示例:
我对Java不太熟悉,但尝试按照相关SO 。
Event createdEvent = calendario.events( ).insert( [email protected],事件).setSendNotifications(true).execute();
希望这会有所帮助。
I have a Java Spring API where I want to integrate Google Calendar.
The task:
- Basically creating an event for two attendees (users) and send them an invite with the option to accept/decline (standard GCalendar invite)
I tried this example here:https://developers.google.com/google-apps/calendar/quickstart/java
But I think this is not the right one since I authenticate as a user - or do I need this to send them invites via email?
Can anyone point me in the right direction?
解决方案
Try setting the notification to true.
In the Try this API (Events: insert):
I'm not very familiar with java but try using this code as suggested in a related SO post.
Event createdEvent = calendario.events().insert("[email protected]", event).setSendNotifications(true).execute();
Hope this helps.
这篇关于使用Google Calendar API发送邀请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!