简体   繁体   English

在没有OAuth的情况下从公共Google日历获取事件,仅使用API​​密钥?

[英]GET events from PUBLIC Google calendar WITHOUT OAuth, just with API Key?

As the title suggests.How can I GET events from PUBLIC Google calendar WITHOUT using OAuth, just with API Key ? 就像标题所暗示的那样,如何仅使用API​​ Key就可以使用OAuth从PUBLIC Google日历中获取事件?

Below is not working. 下面不起作用。

https://www.googleapis.com/calendar/v3/calendars/ {calendarid}/events?key={API Key} https://www.googleapis.com/calendar/v3/calendars/ {calendarid} / events?key = {API密钥}

Thank you in advance 先感谢您

In order to get this to work, you need to set the following 3 settings: 为了使其正常工作,您需要设置以下3种设置:

  1. Make your calendar public 公开您的日历
  2. Set your API key app-restrictions within the Google API Console to allow your application and/or website domain to make requests. 在Google API控制台中设置您的API密钥应用限制,以允许您的应用和/或网站域发出请求。
  3. Make sure your API key has access to the calendar API, this setting can be found on the same page. 确保您的API密钥可以访问日历API,此设置可以在同一页面上找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在没有 oauth 的情况下从 Flask 应用程序将日历事件添加到 Google 日历? - How to Add Calendar Events to Google Calendar from Flask App without oauth? 无需从 GCP 重新验证即可通过 API 进行 Google 日历活动 - Google Calendar events via API without reauthentication from GCP 更新没有 Oauth 或 API 键的谷歌表 - Update google sheet without Oauth or API key 将公共 Google 日历事件导出到 csv(Python) - Export public Google Calendar events to csv (Python) Google日历-通过API Rest获取具有nextSyncToken的修改后的事件 - Google calendar- get modified events with nextSyncToken via API rest 如何从 Django 中的 Google Calendar API 获取事件? - How to fetch events from Google Calendar API in Django? 具有域范围委托的 Google 日历 API:events.watch 方法失败并显示“请求缺少有效的 API 密钥” - Google Calendar API with domain wide delegation: events.watch method fails with "The request is missing a valid API key" 没有api密钥的oauth2 - oauth2 without api key 试图在没有OAuth同意屏幕的情况下授权AWS Lambda进行Google Calendar API调用 - Attempting to Authorize AWS Lambda for Google Calendar API Call without OAuth Consent Screen Google Calendar API Python-导入多个事件 - Google Calendar API Python - Import Multiple Events
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM