Google日历api超过了未经身份验证的使用的每日限制.继续使用需要注册. [英] Google calendar api "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."

查看:106
本文介绍了Google日历api超过了未经身份验证的使用的每日限制.继续使用需要注册.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个带有Google日历API的服务器到服务器身份验证的预订系统.有时,当我使用API​​创建事件时,会得到以下提示:

I am creating a booking system with server to server auth with google calendar API. Sometimes when I create events with the API I get this :

{
error: {
errors: [
{
domain: "usageLimits",
reason: "dailyLimitExceededUnreg",
message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
extendedHelp: "https://code.google.com/apis/console"
}
],
code: 403,
message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}

但是,否则API会说该事件已创建,但是日历中没有创建任何事件...在所有其他情况下,事件都是成功创建的,但是有时会导致事件丢失.在哪里可以取消此限制,以便将我使用Api创建的所有事件保存到Google日历?

But otherwise the API says the event has been created, but there is no event created in the calendar... In all other cases event is created successfully, but this leads to missing events sometimes. Where I can remove this limit, so all events that i create with the Api to be saved to google calendar?

推荐答案

似乎有一个问题使用服务帐户邀请人们参加日历活动.

It looks like there is an issue with Service Accounts inviting people to Calendar Events.

如果您拥有GSuite域,当前的解决方法将是执行Domain-Wide委派.根据文档:

In case you own a GSuite domain, a current workaround would be performing Domain-Wide delegation. According to the documentation:

  1. 转到您的G Suite域的管理控制台.
  2. 从控件列表中选择安全性.如果没有看到安全性列表中,从底部的灰色栏中选择更多控件.页,然后从控件列表中选择安全性".如果你做不到查看控件,确保您以管理员身份登录域.
  3. 从以下列表中选择显示更多,然后选择高级设置.选项.
  4. 身份验证部分中选择管理API客户端访问权限.
  5. 客户名称字段中,输入服务帐户的客户ID .你可以在服务帐户中找到服务帐户的客户ID.页面.
  6. 一个或多个API范围字段中,输入可以您的应用程序应被授予访问权限.例如,如果您的应用程序需要对Google Drive API和Google Calendar API,输入: https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/calendar .
  7. 点击授权
  1. Go to your G Suite domain’s Admin console.
  2. Select Security from the list of controls. If you don't see Security listed, select More controls from the gray bar at the bottom of the page, then select Security from the list of controls. If you can't see the controls, make sure you're signed in as an administrator for the domain.
  3. Select Show more and then Advanced settings from the list of options.
  4. Select Manage API client access in the Authentication section.
  5. In the Client Name field enter the service account's Client ID. You can find your service account's client ID in the Service accounts page.
  6. In the One or More API Scopes field enter the list of scopes that your application should be granted access to. For example, if your application needs domain-wide access to the Google Drive API and the Google Calendar API, enter: https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/calendar.
  7. Click Authorize

关于现有问题,您可以单击问题编号旁边的星号,以优先考虑该错误并接收电子邮件更新.

Regarding the existing issue, you can click on the star next to the issue number to give more priority to the bug and to receive email updates.

这篇关于Google日历api超过了未经身份验证的使用的每日限制.继续使用需要注册.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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