php - 无法使用普通 gmail 帐户在 google plus 页面上发布数据
问题描述
我使用 g 套件帐户创建了一个应用程序。使用 google 客户端 API,我可以使用我的 g 套件帐户在 google plus 页面上发布数据。没关系。但我需要在 google plus page 普通 gmail 帐户上发布数据。当我尝试使用我的正常 test.gmail.com 发布数据时。它提供了以下错误。
(出了点问题:调用 POST https://www.googleapis.com/plusDomains/v1/people/me/activities时出错 :(403)禁止访问)。但是 Hootsuite 网站我可以使用普通的 gmail 帐户在 google plus 上发布数据。我是否需要购买任何其他类似(g 套件帐户)。
参考链接:-
https://github.com/google/google-api-php-client
我的范围:
$client>addScope("https://www.googleapis.com/auth/plus.circles.read");
$client->addScope("https://www.googleapis.com/auth/plus.circles.write");
$client->addScope("https://www.googleapis.com/auth/plus.login");
$client->addScope("https://www.googleapis.com/auth/plus.me");
$client->addScope("https://www.googleapis.com/auth/plus.media.upload");
$client->addScope("https://www.googleapis.com/auth/plus.profiles.read");
$client->addScope("https://www.googleapis.com/auth/plus.stream.read");
$client->addScope("https://www.googleapis.com/auth/plus.stream.write");
$client->addScope("https://www.googleapis.com/auth/activity");
还是我应该使用更多的范围?
解决方案
推荐阅读
- smb - SMB2 CHANGE_NOTIFY 可以用来保存远程目录列表的准确快照吗?
- bash - 使用 if-else 执行 shell 时出错
- python-pptx - 更新 PowerPoint 中现有气泡图的数据
- python - 鹈鹕主题 CSS 文件未复制到输出
- postgresql - 将 postgres 查询中的两个日期列与多个连接表匹配
- nuxt.js - Nuxt 404 页面在生成时出现损坏,在运行 dev 时工作正常
- python - 我将如何制作多个“玩家”并使用泡菜和课程保存他们
- vba - Selection.style 应用于错误的段落(和其他问题)
- c# - .NET 5 Windows Forms with Dependency Injection - 如何将表单属性从一个表单传递到另一个表单?
- java - 如何最小化以下问题的时间复杂度