api - 如何在 Google+ 墙上发帖

标签 api google-plus

我想通过我的应用程序在 Google+ 墙上分享一些信息。 为此,我浏览了 Google+ API 。在该 API 中,他们提到了如何获取特定用户的访问 token ,但没有提到如何使用访问 token 在用户墙上发帖。

最佳答案

嗯,Google+ 没有“墙”,它有“信息流”。正确的术语可能会帮助您找到更好的搜索结果。不管怎样,除非您是 Google 合作伙伴,否则这个消息都不是好消息:

API 目前仅限于只读访问。来自 API website :

Note: The Google+ API currently provides read-only access to public data. All API calls require either an OAuth 2.0 token or an API key.

由于它是只读的,您将无法通过 API 在任何地方更新或发布任何信息 - 您只能使用它来提取个人资料和事件详细信息等基本信息。

鉴于对 API 的访问权限可能会随着时间的推移而发生变化,我将尽力使此答案保持最新状态,包括与写入访问权限相关的新闻或更改信息。

<小时/>

新闻与更新

2015-04-28:Google+ Domains API早在 2013 年 8 月就已宣布,但不知何故我错过了它与 Google+ 的相关性。

The Google+ Domains API allows Google Apps customers and ISVs to take advantage of enhanced Google+ APIs to build tools and services that can be used in a variety of ways.

不,它提供对用户 Google+ 个人资料的完全写入权限,但它确实为您提供了优于 Google+ API v1 的微小优势,至少在域内是如此。这主要针对移动应用开发者。

2015-01-21:我重新访问了此答案中链接的许多来源,并搜索了有关 API 更改的新闻,但 Google 一直保持沉默。

2014-03-12:Google+ 上有关写入权限(或缺乏写入权限)的各种讨论线程:

2013-12-03:来自 UPDATE 1 的问题线程终于是 responded to by a Google+ project member 。关于 Streams 的写入访问的其他讨论正在 Developing with Google+ 上间歇性地进行。社区页面。

2013-07-05:名为 Eric Leroy 的开发者已建成an "unofficial" JavaScript library为 Google+ API 提供读/写扩展。

2013-05-14:“社交媒体管理公司”可以通过尝试成为 Google+ 信息页 API 合作伙伴来获得额外的 API 访问权限。

以下是合作伙伴申请表的摘录:

The Google+ pages API allows social media management companies to add Google+ page management features into their tool. Access to this API is available through a whitelist, and access is granted to partners on a company by company basis dependent on fit with this API.

解释缺少写入 API 的其他文章:

2013-01-04:Google 刚刚宣布 Google+ History 。您可以使用它来编写“时刻”(默认情况下是私有(private)的),但可以通过将它们直接共享到您的信息流和/或您的个人资料来公开。矩类型之一是 CommentActivity .

2012-10-08:现在有一个 duplicate bug post只有一些评论,但您也可以在那里查看 future 的更新。

2012-06-25:我遇到了 issue tracker post用于 Google+ 写入访问。截至 2012 年 6 月 25 日,增强请求状态为"new",优先级为“中”。评论中有一些感兴趣的链接。

关于api - 如何在 Google+ 墙上发帖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7570327/

相关文章:

java - 非静态API的终结点是什么?

javascript - 缓存 facebook 和 g+ js 文件,没有错误,但有按钮

android - 将 facebook 和 google 集成到同一个应用程序中,并允许用户同时登录

google-plus - 从 Google+ 的 URL 获取事件 ID?

android - 从 google plus api 取消授权

ios - Google plus sdk 链接器错误 ios

python - 构建 RESTFul C++ api 以与 Python 交互

Trello API : determine when a card changed lists?

javascript - 保存 JSON 响应

Python REST API 在 Docker 容器中无法正常工作