简体   繁体   English

消息403错误:访问未配置。 请使用Google Developers Console激活项目的API

[英]403 error with message:Access Not Configured. Please use Google Developers Console to activate the API for your project

Can't overcome this situation: created a project in the Google developers console they created "Client ID for web application" and "Key for server applications". 无法克服这种情况:在Google开发人员控制台中创建了一个项目,他们创建了“Web应用程序的客户端ID”和“服务器应用程序的密钥”。

In the console requests have completed successfully, but when I send from the server I get the following error: 在控制台中请求已成功完成,但是当我从服务器发送时,我收到以下错误:

403: {
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
   }
  ],
  "code": 403,
  "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
 }
}

Parameters to construct the query checked.. the request goes on: 检查构造查询的参数..请求继续:

"https://www.googleapis.com/calendar/v3/freeBusy?key=my_key"
pass parameters: "{"items":[{"id":"calendar_id@group.calendar.google.com"}],"timeMax":"2014-04-09T00:00:00+01:00","timeMin":"2014-01-09T00:00:00+01:00","timeZone":"Europe\/Berlin"}"

Where can I see what the error is? 我在哪里可以看到错误是什么?

Whether in this help Billing (at the moment it is turned off "Billing is not enabled")? 是否在此帮助结算中(此时它已关闭“结算未启用”)?

========================== UPDATED: The problem was resolved so (like shamanism): I just created a new project in the google api, next tab "APIs&auth->Credentials" I added to the project "Client ID for web application", when you create immediately pointed out "Redirect URIs" when you create is automatically generated "Key for browser applications"that can work with any host). ==========================更新:问题得到了解决(如萨满教):我刚刚在google api中创建了一个新项目,接下来选项卡“API&auth-> Credentials”我添加到项目“Web应用程序的客户端ID”,当您创建时立即创建“重定向URI”时,会自动生成“可以与任何主机一起使用的浏览器应用程序密钥”。 After these steps, I point to a website created settings and requests are. 完成这些步骤后,我指向一个网站创建的设置和请求。

To send requests to use drupal and modules: gauth and gcal (which uses http://code.google.com/p/google-api-php-client/ ). 发送使用drupal和模块的请求:gauth和gcal(使用http://code.google.com/p/google-api-php-client/ )。

I was getting the exact same error (except with the Google Glass Mirror API). 我得到了完全相同的错误(使用Google Glass Mirror API除外)。 Adding billing information and adding both http/https to my redirect URL didn't help either. 添加结算信息并将http / https添加到我的重定向网址也无济于事。

Apparently Google APIs have been known to misbehave when you provide both OAuth2 credentials and an API Key! 显然,当您提供OAuth2凭据和API密钥时,Google API会出现行为错误! The solution (if you are using the Google APIs Client Library for PHP) is to simply remove the following from your code: 解决方案(如果您使用的是用于PHP的Google API客户端库)只需从代码中删除以下内容:

$client->setDeveloperKey($key);

Hope this helps. 希望这可以帮助。

I got exactly the same error. 我得到了完全相同的错误。 In my case, I was trying to access " https://www.googleapis.com/plus/v1/people ", and 'Google+ API' was not enabled for my project in API's section. 在我的情况下,我试图访问“ https://www.googleapis.com/plus/v1/people ”,并且在API的部分中没有为我的项目启用“Google+ API”。 I just had to set 'Google+ API' ON 我只需要设置'Google+ API'即可

Try to edit allowed referrers in the developers console, like they say here: stackoverflow.com/questions/22870082/getting-error-403-access-not-configured-please-use-google-developers-console-t 尝试在开发人员控制台中编辑允许的引用者,就像他们在这里所说: stackoverflow.com/questions/22870082/getting-error-403-access-not-configured-please-use-google-developers-console-t

This solution worked for me. 这个解决方案对我有用。

If you use Public API access for action, you must to add your server ip to Allowed IPs list (Select Project -> APIs and Auth -> Credentials). 如果使用公共API访问权限进行操作,则必须将服务器IP添加到“允许的IP”列表(选择“项目” - >“API”和“身份验证” - >“凭据”)。 If not, you will get an error as above: "Access Not Configured. Please use Google Developers Console to activate the API for your project." 如果没有,您将收到上述错误:“未配置访问权限。请使用Google Developers Console激活项目的API。”

Please view my attached file to view more 请查看我的附件以查看更多信息 在此输入图像描述

暂无
暂无

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

相关问题 Google Glass开发错误:(403)访问未配置。 请使用Google Developers Console激活项目的API - Google Glass Development Error: (403) Access Not Configured. Please use Google Developers Console to activate the API for your project 该API项目无权使用此API。 请确保已在Google Developers Console中激活了此API - This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console Google翻译API访问错误:(403)访问权限未配置 - Google Translate API Access Error: (403) Access Not Configured 创建Google Analytics(分析)目标403错误消息:您的项目无权使用此功能 - Create Google Analytics Goal 403 Error Message: Your project does not have access to this feature Google Calendar API - (403)未配置访问权限' - Google Calendar API - (403) Access Not Configured' “您已经超出了该API的每日请求配额。我们建议您在Google Developers Console上注册密钥 - "You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console Laravel 5 + PostgreSQL:“数据库 [postgres] 未配置。” 错误 - Laravel 5 + PostgreSQL: "Database [postgres] not configured." Error (403)您的项目无权访问此功能 - (403) Your project does not have access to this feature 403访问未配置 - 403 Access Not Configured 如何代表您的客户使用Google Ads API访问 - How to use google ads api access on behalf your client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM