javascript 未配置访问。您的项目未启用 API (Google+ API)。请使用 Google Developers Console 更新您的配置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30144299/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 11:47:52  来源:igfitidea点击:

Access Not Configured. The API (Google+ API) is not enabled for your project. Please use the Google Developers Console to update your configuration

javascriptgoogle-apigoogle-plusgoogle-developers-console

提问by Arsalan007

Giving error even I enabled Google+ API in Google Developers Console

即使我在 Google Developers Console 中启用了 Google+ API 也会出错

Code:403 "message": "Access Not Configured. The API (Google+ API) is not enabled for your project. Please use the Google Developers Console to update your configuration."

代码:403“消息”:“访问未配置。未为您的项目启用 API (Google+ API)。请使用 Google Developers Console 更新您的配置。”

回答by DaImTo

You have notenabled the Google+ APIfor your project in the Google Developer console. Make sure that its enabled and double check that your code is using the correct client_id and clientsecret, that match this project. My tutorial on how to enable APIs in Google Developers console.

您还没有启用Google+ API在您的项目Google Developer console。确保它已启用并仔细检查您的代码是否使用了与此项目匹配的正确client_id 和clientsecret。我关于如何在 Google Developers 控制台中启用 API 的教程

Where to enable it:

在哪里启用它:

Go to the Google developer consoleon the left look for the Apis & Auths menu under that you will find the API menu.

转到 左侧的Google 开发者控制台,查找 APIs & Auths 菜单,在该菜单下您将找到 API 菜单。

APIs & auth -> API

API 和身份验证 -> API

Look for Google+ API enable it.

寻找 Google+ API 启用它。

回答by martinedwards

I found there to be about a 30 minute delay between enabling the API and it allowing me to make calls.

我发现在启用 API 和它允许我拨打电话之间有大约 30 分钟的延迟。

To speed this up I needed to run an API explorer query like this: https://developers.google.com/apis-explorer/?hl=en_US#p/calendar/v3/calendar.calendarList.list

为了加快速度,我需要运行这样的 API 资源管理器查询:https: //developers.google.com/apis-explorer/?hl=en_US#p/calendar/v3/calendar.calendarList.list

But it may have been a coincidence :)

但这可能是巧合:)