Google Calendar API v3中对OAuth服务帐户的参加者有限制吗? [英] Restrictions on attendees for OAuth Service Accounts in Google Calendar API v3?

查看:57
本文介绍了Google Calendar API v3中对OAuth服务帐户的参加者有限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的域的超级管理员帐户中创建了一个服务帐户.我可以使用Google在此处提供的域范围的授权"模型连接到Google Calendar API v3(

I have a Service Account created in a Super Admin account on my domain. I'm able to connect to the Google Calendar API v3 using the "Domain-wide Delegation of Authority" model provided by Google here (https://developers.google.com/drive/delegation). I can list my own events, list the events of others. No problem.

但是,在与外部参与者插入事件时遇到问题.明确一点,当我的域中包含与会者时,我可以插入事件. (除了需要捕获的神秘空白例外之外!)

However, I am running into issues when inserting events with external attendees. To be clear, I can insert events just fine when including attendees within my own domain. (Aside from mysteriously blank exceptions that need to be caught!)

我可以与外部参与者成功地插入一些这样的事件,但是很快,我开始得到:

I can successfully insert a few events like this with external attendees, but soon, I start getting:

HttpError 403: "Calendar usage limits exceeded"

如果我让它静置几个小时,我可以再次运行它并插入一些事件,但是它再次从此错误开始.

If I let it sit for a few hours, I can run it again and get a few events to insert, but then it starts with this error again.

注意:我没有达到每位用户的配额,而且距离每日礼遇限额还很遥远.我在插入之间的代码中也确实睡着了.事件的主体也被确认为格式正确.

Note: I'm not reaching the per-user quota and I'm nowhere near the daily courtesy limit. I do also have a sleep in the code between inserts. The body of the event is also confirmed to be well-formed.

我已经将此问题归结为外部的事件参与者,以为在运行限于相同域中的参与者的完全相同的代码时,我如何不会出现这些错误.有人可以解释为什么会这样吗?

I've isolated this issue down to the event attendees being external, seeing as how I do not get these errors when running the exact same code limited to attendees on the same domain. Can someone explain why this is occurring?

推荐答案

也许您达到了每秒5个请求的限制?您每秒尝试插入几次?我尚未发现Calendar API的每项功能(在使用限制中)秒使用限制,但是其他一些API确实有这样的限制... 5/sec或10/sec api调用...

Perhaps you're reaching the limit of 5 requests/second? How many times a second are you attempting your inserts? I have not found (here: usage limits) that the Calendar API has a per-second usage limit, but some other APIs do have such a restriction... either 5/sec or 10/sec api calls...

这篇关于Google Calendar API v3中对OAuth服务帐户的参加者有限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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