如何连接到Google公共日历 [英] How to Connect to a Google Public Calendar

查看:83
本文介绍了如何连接到Google公共日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自Google于2014年11月17日弃用v1和v2以来,我正尝试使用 new Google日历API v3检索所有事件的脚本.

I am trying to build a script to retrieve all my events using the new Google Calendar API v3 since Google deprecated v1 and v2 on 11/17/2014.

我收到此错误:

致命错误:未捕获的异常"Google_Service_Exception"与 消息调用GET时出错 https://www.googleapis.com/calendar/v3/calendars /MY-PUBLIC-CALENDAR/事件: (403)超出了未经身份验证的使用的每日限制.继续使用 需要注册."在 /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php:76 堆栈跟踪:#0 /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php(41): Google_Http_REST :: decodeHttpResponse(Object(Google_Http_Request))#1 /usr/local/lib/php/google-api-php-client/src/Google/Client.php(548): Google_Http_REST :: execute(Object(Google_Client), 对象(Google_Http_Request))#2 /usr/local/lib/php/google-api-php-client/src/Google/Service/Resource.php(190): Google_Client-> execute(Object(Google_Http_Request))#3 /usr/local/lib/php/google-api-php-client/src/Google/Service/Calendar.php(1561): Google_Service_Resource-> call('list',Array,'Google_Service _...')#4 /home/sme/public_html/app/mods/googleCalendar_3.0/cache_events.php(71): Google_Service_Calendar_Events_Resource-> list in /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php上 第76行

Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/calendar/v3/calendars/MY-PUBLIC-CALENDAR/events: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.' in /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php:76 Stack trace: #0 /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php(41): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request)) #1 /usr/local/lib/php/google-api-php-client/src/Google/Client.php(548): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request)) #2 /usr/local/lib/php/google-api-php-client/src/Google/Service/Resource.php(190): Google_Client->execute(Object(Google_Http_Request)) #3 /usr/local/lib/php/google-api-php-client/src/Google/Service/Calendar.php(1561): Google_Service_Resource->call('list', Array, 'Google_Service_...') #4 /home/sme/public_html/app/mods/googleCalendar_3.0/cache_events.php(71): Google_Service_Calendar_Events_Resource->list in /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php on line 76

(403) Daily Limit for Unauthenticated Use Exceeded是否意味着我今天不能再对脚本进行测试和故障排除?真的吗?

Does the (403) Daily Limit for Unauthenticated Use Exceeded mean I can no longer test and troubleshoot my script today? Really?

我需要等待多长时间才能恢复工作? 有什么解决方法? Google为什么会阻止我们构建脚本?

How long do I need to wait to resume working? What's the workaround? Why would Google stop us from building a script?

推荐答案

某些Google API使您可以使用未经身份验证的公共用户访问它们.它没有被挂钩到Google Developer Console上的项目,因为事实是您可以从中请求多少数据有非常严格的限制.

Some of the Google APIs let you access them using a public non authenticated user. It is not hooked to a project on Google Developer console due to that fact there is a very strict limit to how much data you can request from it.

(403) Daily Limit for Unauthenticated-表示您正在与此一起运行.未经身份验证的用户.您需要修复代码才能使用来自Google Developer Console的客户端ID.

(403) Daily Limit for Unauthenticated - Means that you are running with that. non authenticated user. You need to fix your code to use a client id from Google Developer console.

这篇关于如何连接到Google公共日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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