How to set the user for the Google URL Shortener API Quota?

£可爱£侵袭症+ 提交于 2019-12-05 22:28:24

问题


The Google API console shows a Quota of "1,000,000 queries per day" and "100 queries per 100 seconds per user". Both of these quotas are editable in the console, but the maximum enterable value is 1,000,000 and 100 respectively. I am bumping up against the 100 queries per 100 seconds per user and get a 403 User Rate Limit Exceeded.

Other Google APIs have a parameter "quotaUser" which is an arbitrary string to identify a user which you can apply the above 100 queries per 100 seconds quota to. However, this parameter does not seem to be available to the URL Shortener API and so I am limited to 100 queries per 100 seconds in total which will not meet my needs (and makes the 1,000,000 per day moot).

Is there a way to either raise the quota or send requests as multiple users to get around the quota?

来源:https://stackoverflow.com/questions/46553014/how-to-set-the-user-for-the-google-url-shortener-api-quota

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!