【问题标题】:Permission Denied when using /calendar.app.created in Google Calendar API在 Google Calendar API 中使用 /calendar.app.created 时权限被拒绝
【发布时间】:2022-06-16 16:57:03
【问题描述】:

早上好,

我们正在使用范围:

https://www.googleapis.com/auth/calendar.app.created

制作辅助 Google 日历,并在其中查看、创建、更改和删除活动

当我们尝试创建日历时,我们得到了 PERMISSION_DENIED

是否有人熟悉 calendar.app.created 中的任何问题? calendar.app.created 通常有效吗?

请注意,我们不能使用范围https://www.googleapis.com/auth/calendar,因为它是一个受限范围,我们需要使用非敏感范围calendar.app.created。

谢谢。

【问题讨论】:

    标签: google-calendar-api


    【解决方案1】:

    Calendars: insert 的 API 文档中:

    创建辅助日历。立即尝试或查看示例。

    那里使用的范围是https://www.googleapis.com/auth/calendar

    更新评论以进行可视化

    我明白这一点,但不推荐使用 calendar.app。您可以在 OAuth 2.0 Scopes for Google APIs 上查看日历的可用范围。这些是在 Calendar API V3 中使用的有效范围

    您还可以检查其他问题,说明它不是有效范围:Google Calendar API request is denied for scope

    【讨论】:

    • 谢谢 Kessy,但是我们不能使用受限范围的 auth/calendar,我们希望改用非敏感范围的 /auth/calendar.app。
    • 我明白这一点,但 calendar.app 已被弃用。您可以在 OAuth 2.0 Scopes for Google APIs 上查看日历的可用范围。您还可以检查其他问题,其中指出它不是有效范围:stackoverflow.com/questions/64474688/…
    猜你喜欢
    • 2019-12-31
    • 2022-08-03
    • 2016-06-02
    • 1970-01-01
    • 1970-01-01
    • 2020-07-23
    • 2022-06-26
    • 2021-02-05
    • 1970-01-01
    相关资源
    最近更新 更多