使用Google Calendar API发送邀请 [英] Send invites with google calendar API

查看:218
本文介绍了使用Google Calendar API发送邀请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java Spring API,我想在其中集成Google日历。



任务:




  • 基本为两个参与者(用户)创建一个活动,并向他们发送邀请,并带有接受/拒绝的选项(标准GCalendar邀请)



我在这里尝试过以下示例:


我对Java不太熟悉,但尝试按照相关SO 帖子

  Event createdEvent = calendario.events( ).insert( some-mail-from-google0@group.calendar.google.com,事件).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.

sendNotifications

  • Whether to send notifications about the creation of the new event. Optional. The default is False.

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("some-mail-from-google0@group.calendar.google.com", event).setSendNotifications(true).execute();

Hope this helps.

这篇关于使用Google Calendar API发送邀请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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