Google Calendar API - 设置客人可以修改为true [英] Google Calendar API - set guest can modify to true

查看:195
本文介绍了Google Calendar API - 设置客人可以修改为true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为日历网络应用使用Google日历api。我的应用程序允许用户创建和修改日历事件,并将这些更改与用户的Google日历同步。我最近注意到,当一个用户创建一个事件并邀请另一个用户访问该事件时,该被邀请用户只能更改他/她的日历的事件主题,而不是所有其他参与者。我希望一位用户的更改反映在所有其他参与者的Google日历中。 Google日历的网站提供了允许客人修改活动的选项:



但我无法找到位置我可以在 Google日历API 中指定此选项。如何在创建事件时使用gcal api将guestsCanModify设置为true?解析方案

这可能是Google的一些魔力Google日历网站。如果您查看 Events.insert 授予与会者对该事件的权限没有任何限制。您似乎只能添加用户,但不会限制其在事件方面的权限。不过,我认为这是一个新功能,这让我觉得它可能是他们将来添加到API中的一些东西。如果他们这样做会很好。

I'm using the google calendar api for a calendar web app. My app allows users to create and modify calendar events and it syncs these changes with user's google calendars. I recently noticed that when one user creates an event and invites another user to that event, that invited user can only change the topic of the event for his/her calendar, not for all the other participants. I would like one user's changes to be reflected on the google calendar's of all the other participants. Google Calendar's website provides an option for allowing guests to modify the event:

but I wasn't able to find where I could specify this option in the google calendar api. How can I use the gcal api to set guestsCanModify to true when an event is created?

解决方案

That is probably some Google magic in the Google Calendar website. If you check the documentation for Events.insert There is nothing about granting attendees permissions on the event. It would appear that you can only add a user to a calendar but not limit their permissions in anyway with regard to events.

However I think that is a new feature which makes me think it might be something they will be adding to the API in the future. It would be nice if they did.

这篇关于Google Calendar API - 设置客人可以修改为true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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