【发布时间】:2021-03-24 17:01:06
【问题描述】:
我在提出第一个请求后收到此错误:
配额指标“Requests”和限制“Requests per 服务“mybusinessaccountmanagement.googleapis.com”的分钟”
我如何在第一次请求后超出配额?
if(File.Exists(ApplicationVariables.CertPath)) {
GoogleCredential credential;
using (var stream = new FileStream(ApplicationVariables.CertPath, FileMode.Open, FileAccess.Read))
{
credential = GoogleCredential.FromStream(stream).CreateScoped("https://www.googleapis.com/auth/business.manage");
}
// Create the service.
var service = new MyBusinessAccountManagementService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = "Google Reviews Downloader",
});
//var bookshelves = await service.Mylibrary.Bookshelves.List().ExecuteAsync();
var accounts = await service.Accounts.List().ExecuteAsync();
Console.WriteLine("accounts:" + accounts);
}
【问题讨论】:
-
谁投票否决并关闭...为什么?这是一个合理的问题。我在 SO 上看到了其他类似的主题,但我没有看到任何与我的情况完全匹配的主题。
-
人们喜欢对他们不理解的问题投反对票并关闭。我同意你的问题是合法的。
标签: google-api google-api-dotnet-client