1

嗨,我对Google 翻译 API有疑问

使用生成的 API 密钥(对于 API 密钥,我启用了计费,IP 的引用者也设置为任何 IP 和任何引用者。)进行翻译时出现以下错误。

我使用了谷歌提供的以下代码片段

https://developers.google.com/translate/v2/getting_started#auth

我总是收到错误 403, Access not configured 。

translateText({
      "error": {
      "errors": [
      {
         "domain": "usageLimits",
         "reason": "accessNotConfigured",
         "message": "Access Not Configured"
      }
      ],
   "code": 403,
   "message": "Access Not Configured"
   }}
);
4

0 回答 0