The*_*nen 5 google-calendar-api
根据文档(此处),Google 提供了一些相同的范围:
https://www.googleapis.com/auth/calendar 对日历的读/写访问权限
https://www.googleapis.com/auth/calendar.events.readonly 对事件的只读访问权限
calendar.readonly 和 calendar.events.readonly 有什么区别?非只读的有什么区别?
因此,您可以看到,对于Calendars: get或CalendarList: list等方法,您需要以下范围之一:
而对于事件:列表或Events: get可能的范围是:
换句话说:
https://www.googleapis.com/auth/calendar.events.readonly
比
https://www.googleapis.com/auth/calendar.readonly
前者仅允许您检索事件特定信息,而不是一般日历相关信息。
然后,
如果你想插入、修补或更新一个事件,你至少需要范围
而要插入、修补或更新日历,您需要范围https://www.googleapis.com/auth/calendar
| 归档时间: |
|
| 查看次数: |
2425 次 |
| 最近记录: |