Google 通讯录 API 的查询限制

发布于 2024-12-03 13:53:48 字数 226 浏览 7 评论 0原文

我目前正在尝试在我的数据库和 Gmail 联系人之间进行同步操作。 我的第一次初始同步,每个用户下载/上传超过 1,000 个联系人,可能会在 Gmail 中出现一些错误。

有什么解决方法吗?拥有大量联系人有哪些限制?

我的理解是,它是按 IP 限制的,而不是按用户限制...这是正确的吗?

我希望有人可以分享一些这方面的信息,我已经搜索过网络,但还没有找到最好的资源......想法?!

I am currently trying to make a syncing operation between my Database and Gmail's contacts.
My first initial sync, downloading/uploading over 1,000 contacts per user might throw some errors up in gmails face.

Is there any work-arounds? What is the limitations to having many contacts?

My understanding is that it is limited per IP, and not per User... is this correct?

I hope that someone can share some info on this, I have searched the web, but haven't found the best of resources... Thoughts?!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

满栀 2024-12-10 13:53:48

我实际上收到了谷歌的回复。

当前的查询是针对每个用户的,并且相当高,尽管有一个
每秒、每小时、每半天的查询数量限制
你可以发送。不幸的是,我们不会公开沟通这些
值,但我可以向您保证,正常的应用程序(不是垃圾邮件)
Google 的服务器)应该不会有任何问题。

此外,同步时,请确保使用updated-min查询
参数仅请求自该以来已更新的联系人
向 API 发送请求时提供时间并使用批量请求
因为它将执行多个操作,同时只消耗一个操作
请求用户的配额。

希望这可以帮助其他有需要的人。

I actually received a response from Google.

The query is currently per user and is quite high though there is a
limit in the number of queries per second, per hour and per half a day
you can send. Unfortunately, we don't publicly communicate on these
values but I can assure you that normal applications (not spamming
Google's servers) shouldn't have any issues.

Also, when syncing, please make sure to use the updated-min query
parameter to only request contacts that have been updated since the
provided time and use batch-request when sending requests to the API
as it will perform multiple operations while consuming only one
request on the user's quota.

Hopefully this helps someone else if in need.

情感失落者 2024-12-10 13:53:48

是的,基于 IP 访问 Google API(至少在 Google Maps API 上)存在限制。我能找到的唯一解决方法是使用代理服务器(或tor)。

Yes, there is a limitation on accessing the Google API (at least on Google Maps API) on an IP basis. The only workaround I was abble to find is to use proxy servers (or tor).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文