403禁止将事件添加到Google日历的错误 [英] 403 Forbidden Error adding an event to a Google Calendar

查看:112
本文介绍了403禁止将事件添加到Google日历的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用了[[ https://developers.google.com/google上的代码-apps/calendar/create-events ]上个月,可以将事件从Android应用添加到Google日历,并且可以正常运行.现在,每次我尝试添加事件时,都会出现此错误:

Used the code from [ https://developers.google.com/google-apps/calendar/create-events ] last month to add an event to a Google Calendar from an Android app and it worked. Now each time I attempt to add an event I get this error:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
W/System.err: {
W/System.err:   "code" : 403,
W/System.err:   "errors" : [ {
W/System.err:     "domain" : "global",
W/System.err:     "message" : "Forbidden",
W/System.err:     "reason" : "forbidden"
W/System.err:   } ],

我尝试在此处寻找类似的问题,但找不到答案.此页面或其他页面上的答案有什么想法或方向吗?

I tried looking for similar questions here but could not find an answer. Any ideas or direction to an answer on this page or another?

推荐答案

限制和配额可保护Google基础架构免受自动过程的侵害,而该过程会以不合适的方式使用Calendar Resource API.来自API的过多请求可能是由于无害的键入错误导致的,也可能是由于设计效率低下的系统进行了不必要的API调用而导致的.无论原因如何,对于Google Apps系统的整体健康状况而言,一旦流量达到特定水平,就必须阻止来自特定来源的流量.这样可以确保开发人员的行为不会对整个社区产生负面影响.

Limits and quotas protect the Google infrastructure from an automated process that uses the Calendar Resource API in an inappropriate way. Excessive requests from an API might result from a harmless typo, or may result from an inefficiently designed system that makes needless API calls. Regardless of the cause, blocking traffic from a specific source once it reaches a certain level is necessary for the overall health of the Google Apps system. It ensures that one developer's actions cannot negatively impact the larger community.

万一您的API请求失败,您将收到HTTP状态代码响应.状态码403具有有关错误输入的错误信息,HTTP状态码503具有指示已超出哪些API配额的错误信息.这些响应使您的自定义应用程序可以检测到这些错误并采取适当的措施.

In the unlikely event that your API request fails, you'll receive an HTTP status code response. A status code of 403 has error information about incorrect input, and an HTTP status code of 503 has error information indicating which API quotas have been exceeded. These responses allow your custom application to detect these errors and take appropriate action.

每个帐户的日历资源最大数量为10,000.

The maximum number of calendar resources per account is 10,000.

有关更多信息,请访问此链接: https://developers.google.com /admin-sdk/calendar-resource/limits

For more information follow this link: https://developers.google.com/admin-sdk/calendar-resource/limits

这篇关于403禁止将事件添加到Google日历的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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