谷歌翻译API总是返回'每日限制超过' [英] Google Translate API always returning 'Daily Limit Exceeded'

查看:3448
本文介绍了谷歌翻译API总是返回'每日限制超过'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让Google翻译API启动并运行。在入门指南中,它提供了以下示例: https ://www.googleapis.com/language/translate/v2/detect?key = {MyAppId}& q = google + translate + is + fast



我只想现在就开始工作,所以我只是试图通过浏览器发布工作视图,所以我创建了一个测试Web应用程序(截图):





和抓住了API密钥,用我的API密钥替换了示例URL的密钥。我收到以下回复:

  {
error:{
errors:[$
域:usageLimits,
reason:dailyLimitExceeded,
消息:每日限制超出
}
],
code:403,
message:每日限额超出
}
}

我还应该注意到,我已使用结算选项(我计划使用该服务的计划)签署帐户,因此我应该在瞬间。

我明显做错了事,但我不知道该怎么做。任何建议?

解决方案

为了获取数据翻译,您必须启用计费,并且必须注册您的信用卡/借记卡。您的卡1 $将被扣除,然后您将可以使用您的网址



我最近做了它,它工作正常。



我现在也在翻译项目。



让我知道您是否需要关于此主题的任何帮助




I'm trying to get the google translate API up and running. On the getting started guide, it gives the following example: https://www.googleapis.com/language/translate/v2/detect?key={MyAppId}&q=google+translate+is+fast

I just want to get this working for now, so I'm just trying to get it working view via a browser post, so I created a testing web application (screenshot):

and grabbed the API key, replaced the sample URL's key with my API key. I get the following response:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded"
 }
}

I should also note, that I have signed my account up with the billing option (I plan on using the service quite a bit), so I should have no issues at the moment.

I'm obviously doing something wrong, but I don't know what. Any suggestions?

解决方案

For getting data translated you have to enable billing and have to register your credit/debit card.After you register your card 1$ will be deducted and then you will be able to use your URL

I did it recently and it worked fine.

I am also working on translating project nowadays.

Let me know if you need any kind of help on this topic

Ishan

这篇关于谷歌翻译API总是返回'每日限制超过'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆