我可以使用Google Calendar API v3访问未经身份验证的其他人的公共日历吗? [英] Can I use Google Calendar API v3 to access someone else's public calendar without auth?

查看:107
本文介绍了我可以使用Google Calendar API v3访问未经身份验证的其他人的公共日历吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

If someone has shared their Google calendar (for example, with a widget that displays it on a web page), then I can get the calendarID, e.g: p75ig3ni1smg4267qg0j0nhodc@group.calendar.google.com

我想编写一个Alexa应用程序(在NodeJS中)以提供该日历中的信息. (我将此示例用作模型: https://developers.google .com/google-apps/calendar/quickstart/nodejs ).

I want to write an Alexa App (in NodeJS) to provide information from that calendar. (I'm using this sample as a model: https://developers.google.com/google-apps/calendar/quickstart/nodejs).

我有两个问题:

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

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

2)由于日历是公共日历,是否需要在API中进行身份验证才能访问日历?上面的示例假定您需要进行身份验证.

2) Since the calendar is public, do I have to be authenticated in the API to access it? The above example assumes you need to authenticate.

推荐答案

Q1)是否可以在Google API中访问它而不要求日历所有者执行某些步骤?

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

  • A1.是的.当日历的所有者共享日历时,其他用户可以使用Google Calendar API访问日历 .那时,不需要所有者做任何事情.
    • A1. Yes. When the owner of the calendar shares calendars, other users can access the calendar using Google Calendar API . At that time, the owner is not required to do something.
    • Q2)由于日历是公开的,我是否必须通过API进行身份验证才能访问日历?

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

      • A2.是的.当不是所有者的用户知道共享日历的ID时,用户可以通过授权每个帐户来访问ID.每个用户都可以使用快速入门脚本中使用的授权过程.
        • 您可以在此处进行测试.放置其他用户日历的ID时,如果日历是共享的,则可以访问它.
          • A2. Yes. When users, who are not owner, know the ID of shared calendar, the users can access to the ID by authorizing for each account. Each user can use by the authorization process used at the Quickstart script.
            • You can test about this using here. When you put the ID of other user's calendar, if the calendar is shared, you can access to it.
            • 如果我误解了你的问题,对不起.

              If I misunderstand your question, I'm sorry.

              这篇关于我可以使用Google Calendar API v3访问未经身份验证的其他人的公共日历吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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