简体   繁体   English

Gmail API限制

[英]Gmail API limits

When an app is granted permission by the user to access their Gmail account and the app makes calls such as sending e-mail, is there a limit on the number of API calls that can be made by the app or is the limit based upon the number of times the API is accessed via the user's account? 当用户授予应用访问其Gmail帐户的权限并且应用程序发出诸如发送电子邮件之类的调用时,应用程序可以对API调用的数量进行限制,或者是基于通过用户帐户访问API的次数?

For example, if my app is being run by 1 million users and the number of API calls is limited by Google to 100,000, does that mean that as soon as 100,000 API calls has been reached regardless which device makes those calls and regardless whose account the token is associated with, my app will not be able to make any further API calls for the remainder of the day? 例如,如果我的应用程序由100万用户运行且API调用的数量被Google限制为100,000,这是否意味着一旦达到100,000个API调用,无论哪个设备进行这些调用,无论哪个帐户是如果令牌与之关联,我的应用将无法在当天的剩余时间内进行任何进一步的API调用?

Or does it mean that 100,000 API calls may be made from a single device from my app running on that device but limits it to the account that granted permission to use the Gmail service? 或者是否意味着可以从我在该设备上运行的应用中的单个设备拨打100,000个API,但是将其限制为授予使用Gmail服务权限的帐户?

What I need to avoid is Google limiting my app suddenly when 1,000,000 API calls from diverse devices and accounts is made to the Gmail service. 我需要避免的是当Google对Gmail服务进行1,000,000次来自不同设备和帐户的API调用时,Google会突然限制我的应用。 If Google limits my app this way, I'm better off to not use the Gmail API and simply revert to using the typical SMTP and POP services where the user must enter their username/password. 如果Google以这种方式限制我的应用,我最好不要使用Gmail API,只需恢复使用典型的SMTP和POP服务,用户必须输入用户名/密码。

The following is documented by Google: 以下是Google记录的内容:

The upload rate is one API request - per second - per user, no matter how many threads are making upload requests. 无论有多少线程在上传请求,每个用户的上传速率都是一个API请求(每秒一次)。

Taken from Google Apps Email Settings API Limits and Quotas 取自Google Apps电子邮件设置API限制和配额

but there is no clear definition by what is meant by "per user". 但是“每个用户”的含义没有明确的定义。 Account? 帐户? IP address? IP地址? Client ID??? 客户ID ???

You wrote When an app is granted permission by the user to access their Gmail account and then ask the definition of user . 您编写的内容当用户授予应用访问其Gmail帐户的权限 ,然后询问用户的定义时。 I think they are the same. 我认为他们是一样的。 A user is the end-user, sending emails, and identified by it's email address. 用户是最终用户,发送电子邮件,并通过电子邮件地址识别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM