如何在没有用户身份验证的情况下列出 Google 日历活动 [英] How to list Google Calendar Events without User Authentication

查看:28
本文介绍了如何在没有用户身份验证的情况下列出 Google 日历活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2014 年 11 月 17 日,Google 弃用了其使用 Zend 框架的 Google 日历 API 的 v1 和 v2.

On November 17, 2014 Google deprecated v1 and v2 of its Google Calendar API using the Zend Framework.

似乎在公开共享的 Google 日历上列出公开共享的事件的唯一方法是通过使用 OAuth 2.0 的来自 GitHub 的新 Google 客户端库 API

It seems the only way to list publicly shared events on a publicly shared Google Calendar is through the new Google Client Library API from GitHub using OAuth 2.0

这意味着以前用于展示公共活动的公共网站的访问者现在必须进行身份验证和登录.

This means visitors to a public website that used to display public events now have to authenticate and login.

这是真的吗?没有其他方法可以继续显示公开的 Google 日历活动吗?

Is that true? Is there no other way to continue to show public Google Calendar events?

推荐答案

您需要做的是使用 服务帐户为此.然后,您就可以将服务帐户电子邮件地址作为用户添加到您网站的日历.然后,服务帐户将能够访问此日历,包括活动

What you need to do is use a Service account for this. You will then be able add the service accounts email address as a user to the calendar for your website. The Service account will then be able to access this calendar including the events

这篇关于如何在没有用户身份验证的情况下列出 Google 日历活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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