![](/img/trans.png)
[英]Google Glass Development Error: (403) Access Not Configured. Please use Google Developers Console to activate the API for your project
[英]403 error with message:Access Not Configured. Please use Google Developers Console to activate the API for your project
无法克服这种情况:在Google开发人员控制台中创建了一个项目,他们创建了“Web应用程序的客户端ID”和“服务器应用程序的密钥”。
在控制台中请求已成功完成,但是当我从服务器发送时,我收到以下错误:
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."
}
}
检查构造查询的参数..请求继续:
"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"}"
我在哪里可以看到错误是什么?
是否在此帮助结算中(此时它已关闭“结算未启用”)?
==========================更新:问题得到了解决(如萨满教):我刚刚在google api中创建了一个新项目,接下来选项卡“API&auth-> Credentials”我添加到项目“Web应用程序的客户端ID”,当您创建时立即创建“重定向URI”时,会自动生成“可以与任何主机一起使用的浏览器应用程序密钥”。 完成这些步骤后,我指向一个网站创建的设置和请求。
发送使用drupal和模块的请求:gauth和gcal(使用http://code.google.com/p/google-api-php-client/ )。
我得到了完全相同的错误(使用Google Glass Mirror API除外)。 添加结算信息并将http / https添加到我的重定向网址也无济于事。
显然,当您提供OAuth2凭据和API密钥时,Google API会出现行为错误! 解决方案(如果您使用的是用于PHP的Google API客户端库)只需从代码中删除以下内容:
$client->setDeveloperKey($key);
希望这可以帮助。
我得到了完全相同的错误。 在我的情况下,我试图访问“ https://www.googleapis.com/plus/v1/people ”,并且在API的部分中没有为我的项目启用“Google+ API”。 我只需要设置'Google+ API'即可
尝试在开发人员控制台中编辑允许的引用者,就像他们在这里所说: stackoverflow.com/questions/22870082/getting-error-403-access-not-configured-please-use-google-developers-console-t
这个解决方案对我有用。
如果使用公共API访问权限进行操作,则必须将服务器IP添加到“允许的IP”列表(选择“项目” - >“API”和“身份验证” - >“凭据”)。 如果没有,您将收到上述错误:“未配置访问权限。请使用Google Developers Console激活项目的API。”
请查看我的附件以查看更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.