Google+ 域名 API v1.错误 403“未配置访问" [英] Google+ Domains API v1. Error 403 "Access not configured"
问题描述
我开始使用 google+ API,但我在验证时遇到问题,即使在 Google Playground 中也是如此.
我想做一个很简单的事情,就是让我的用户圈出来的人,所以,我使用范围:
/auth/plus.circles.read/auth/plus.me
我请求:
https://www.googleapis.com/plusDomains/v1/people/我/圈子
在 Google PlayGround 和 API 页面 https://developers.google.com/+/domains/api/circles/list 允许你测试它,他们都给我回复:
<代码>{错误": {错误":[{"domain": "usageLimits","reason": "accessNotConfigured","message": "未配置访问"}],代码":403,"message": "未配置访问"}}
很奇怪,因为它说我没有配置我的访问权限,但它应该是.我什至尝试添加 google+ 域 API 的所有范围...
提前致谢
类似于 Akash 所说的 - 检查 API 是否已启用.Google+ 域 API 与主要的 Google+ API 不同,因此您需要确保两者均已启用:
还要确保您正在测试的用户是域的成员,并且您拥有适当的权限.这不是用于一般功能的 API - 它专门用于管理 Google Apps for Business 域内用户的 Google+ 帐户,因此如果您使用 @gmail.com 用户或类似用户对其进行测试,您可能会遇到问题.>
I am starting to use the google+ API, but I am getting problems authenticating, even in the Google Playground.
I want to do a very easy thing, which is get the circled people of my user, so, I use the scopes:
/auth/plus.circles.read /auth/plus.me
And I request with:
https://www.googleapis.com/plusDomains/v1/people/me/circles
In both Google PlayGround, and in the API page https://developers.google.com/+/domains/api/circles/list which allows you to test it, both of them give me the response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
It is strange, because it says that I my access is not configured, but it should be. I even try adding all the scopes of google+ domain API...
Thanks in advance
Kind of what Akash said - check the API is enabled. The Google+ domains API is different than the main Google+ API, so you'll need to ensure both are enabled:
Also make sure that the user you're testing with is a member of the domain, and you have appropriate permissions. This isn't an API for general functionality - its specifically for managing the Google+ accounts for users within a Google Apps for Business domain, so you might have trouble if you're testing it with a @gmail.com user or similar.
这篇关于Google+ 域名 API v1.错误 403“未配置访问"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!