2016-07-21 46 views
0

当我尝试通过调用这个休息服务创建一个贴子到用户的墙上时,我得到了这个错误信息。有人能帮助我吗?Google Plus创建一个Post-Rest API -Forbidden

Error image

+0

你是否以'@ gmail.com'结尾的电子邮件用户发出请求?这些类型的Google帐户无法使用Domains API。 – abraham

+0

是否有任何谷歌帐户哪些电子邮件不在@ gmail.com结束? –

+0

付费[Google Apps](https://apps.google.com/)帐户不会以'@ gmail.com'结尾,而是以用户的网站域名结尾。 Google+ Domains API仅适用于除付费Google for Work帐户之外的Google+帐户。 – abraham

回答

0

您必须启用谷歌+域名API在谷歌API console.Then与您的代码再试一次。

+0

Google +域API已启用。我无法理解问题在哪里。 –

+0

我认为你没有发布发布范围。请将您的代码放在这里,以便我检查一下。还请通过[link](https://developers.google.com/+/domains/api/activities /insert#parameters)。可能会帮助你。 –

+0

这是oauth请求 https://accounts.google.com/o/oauth2/auth?scope=email%20https://www.googleapis.com/auth/plus.stream.write%20https:// www.googleapis.com/auth/plus.me%20https://www.googleapis.com/auth/plus.login&response_type=code&redirect_uri=http%3A%2F%2Fprojectx.abc.lk%2Fstaging&from_login=1&client_id={client_id} –

0

要使用谷歌加域名API,您需要创建帐户http://apps.google.com/,然后使用此用户来创建帖子。但!!!他们创建帖子限制域名。我现在还没有找到如何创建公共帖子的方式。