简体   繁体   English

需要澄清如何应用 Google 表格 API 限制

[英]Need clarification on how the Google Sheets API limits are applied

From Usage Limits help page :使用限制帮助页面

This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user.此版本的 Google 表格 API 每个项目每 100 秒限制 500 个请求,每个用户每 100 秒限制 100 个请求。

Let's take it apart:让我们把它拆开:

  1. 500 requests per 100 seconds per project - This is applied to my project. 500 requests per 100 seconds per project - 这适用于我的项目。 I use my project credentials to make each request.我使用我的项目凭证来发出每个请求。

  2. 100 requests per 100 seconds per user - When I make a request, I also include the OAuth token of a user that permitted me to update their workbook. 100 requests per 100 seconds per user - 当我发出请求时,我还包括允许我更新他们的工作簿的用户的 OAuth 令牌。

Question about the per-user part:关于每个用户部分的问题:

  • Is there anything the user can do themselves (like reach out to Google) to increase the quota just for them?用户可以自己做些什么(比如联系谷歌)来增加他们的配额吗? Or is it me who needs to talk to Google to increase the quota for all users of my project simultaneously?或者是我需要与谷歌交谈以同时增加我项目所有用户的配额?

Thanks!谢谢!

  1. 500 requests per 100 seconds per project - This is applied to my project. 500 requests per 100 seconds per project - 这适用于我的项目。 I use my project credentials to make each request.我使用我的项目凭证来发出每个请求。

  2. 100 requests per 100 seconds per user - When I make a request, I also include the OAuth token of a user that permitted me to update their workbook. 100 requests per 100 seconds per user - 当我发出请求时,我还包括允许我更新他们的工作簿的用户的 OAuth 令牌。

As you can see there are two types of quotas project based quotas these are the quotas that are applied to your project as a whole.如您所见,基于项目的配额有两种类型,这些是应用于整个项目的配额。 Then there are user based quotes these quotas a are applied to the users of your project / application.然后是基于用户的报价,这些配额适用于您的项目/应用程序的用户。

Project based quotas can be extended you can apply for an extension and google may grant you that extension which will increase the number of requests your project as a whole can make.基于项目的配额可以延长,您可以申请延期,谷歌可能会授予您该延期,这将增加您的项目作为一个整体可以提出的请求数量。

User based quotas are more like flood protection they ensure that a single user of your application can not make to many requests at once flooding the server.基于用户的配额更像是洪水保护,它们确保您的应用程序的单个用户不能同时向服务器发出大量请求。 User based quotas can not be extended.无法扩展基于用户的配额。

Is there anything the user can do themselves (like reach out to Google) to increase the quota just for them?用户可以自己做些什么(比如联系谷歌)来增加他们的配额吗? Or is it me who needs to talk to Google to increase the quota for all users of my project simultaneously?或者是我需要与谷歌交谈以同时增加我项目所有用户的配额?

To answer your question there is nothing the user can do to increase the quota this is your project and only you have access to increase the project based quota.要回答您的问题,用户无法增加配额,这是您的项目,只有您有权增加基于项目的配额。

There is nothing you can do to increase he user based quotas.您无法增加基于用户的配额。

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

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