【问题标题】:What's the difference between the Google Calendar API scopes - calendar.readonly and calendar.events.readonly?Google 日历 API 范围 - calendar.readonly 和 calendar.events.readonly 之间有什么区别?
【发布时间】:2020-11-17 12:26:19
【问题描述】:

根据文档 (here),Google 提供了一些相同的范围:

calendar.readonly 和 calendar.events.readonly 有什么区别? 非只读的有什么区别?

【问题讨论】:

    标签: google-calendar-api


    【解决方案1】:

    如果您咨询Google Calendar API references,您可以查看各个请求所需的范围

    所以,你可以看到例如对于Calendars: getCalendarList: list 之类的方法,您需要以下范围之一:

    而对于Events: listEvents: get,可能的范围是:

    换句话说:

    https://www.googleapis.com/auth/calendar.events.readonly

    更严格

    https://www.googleapis.com/auth/calendar.readonly

    前者只允许您检索事件特定信息,而不是一般日历相关信息。

    那么,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-04-16
      • 1970-01-01
      • 2014-02-27
      • 2021-07-15
      • 2014-12-22
      • 2013-08-19
      • 2012-12-11
      相关资源
      最近更新 更多