我可以使用 Google Calendar API v3 无需授权即可访问其他人的 public 日历吗?

Can I use Google Calendar API v3 to access someone else's public calendar without auth?

如果有人分享了他们的 Google 日历(例如,使用在网页上显示它的小部件),那么我可以获得日历 ID,例如:p75ig3ni1smg4267qg0j0nhodc@group.calendar.google.com

我想编写一个 Alexa 应用程序(在 NodeJS 中)来提供该日历中的信息。 (我使用这个样本作为模型:https://developers.google.com/google-apps/calendar/quickstart/nodejs)。

我有两个问题:

1) 我可以在 Google API 中访问它而不要求日历的所有者执行一些步骤

2) 由于日历是 public,我是否必须在 API 中进行身份验证才能访问它?上面的示例假设您需要进行身份验证。

Q1) Can I access it in the Google API without asking the owner of the calendar to perform some steps?

  • A​​1。是的。当日历的所有者共享日历时,其他用户可以使用 Google 日历 API 访问日历 .届时,所有者不需要做任何事情。

Q2) Since the calendar is public, do I have to be authenticated in the API to access it?

  • A​​2。是的。当不是所有者的用户知道共享日历的ID时,用户可以通过为每个帐户授权来访问该ID。每个用户都可以通过在快速启动脚本处使用的授权过程使用。
    • 您可以使用 here 对此进行测试。当你输入其他用户的日历ID时,如果日历是共享的,你就可以访问它。

如果我误解了你的问题,我很抱歉。