如何在 Google+ 墙上发帖 [英] How to post in Google+ wall

查看:47
本文介绍了如何在 Google+ 墙上发帖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决方案

好吧,Google+ 没有墙",它有流".正确的术语可能会帮助您找到更好的搜索结果.无论哪种方式,除非您是 Google 合作伙伴,否则消息都不好:

API 目前仅限于只读访问.来自 API网站:

<块引用>

注意:Google+ API 目前提供对公开的只读访问数据.所有 API 调用都需要 OAuth 2.0 令牌API 密钥.

因为它是只读的,所以您将无法通过 API 更新或发布任何信息 - 您只能使用它来提取基本信息,例如个人资料和活动详细信息.

鉴于对 API 的访问权限可能会随着时间的推移而发生变化,我将尝试通过有关新闻或与写入访问权限相关的更改的信息来更新此答案.


新闻&更新

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

<块引用>

Google+ Domains API 允许 Google Apps 客户和独立软件开发商利用增强的 Google+ API 来构建可以以多种方式使用的工具和服务.

不,它提供对用户 Google+ 个人资料的完全写入权限,但它确实为您提供了与 Google+ API v1 相比的次要优势,至少在域内.这主要面向移动应用开发者.

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

2014-03-12:Google+ 上关于写入权限(或缺乏写入权限)的各种讨论主题:

2013-12-03:来自 UPDATE 1 的问题线程终于 由 Google+ 项目成员回复.正在使用 Google+ 开发上间歇性地进行关于对 Streams 的写访问权限的其他讨论社区页面.

2013-07-05:一位名为 Eric Leroy 的开发者 已经建立了一个非官方"的为 Google+ API 提供读/写扩展的 JavaScript 库.

2013-05-14:一家社交媒体管理公司"可以通过尝试成为 Google+ 信息页 API 合作伙伴来获得更多 API 访问权限.

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

<块引用>

Google+ 信息页 API 允许社交媒体管理公司将 Google+ 信息页管理功能添加到他们的工具中.可通过白名单访问此 API,并根据是否适合此 API 以公司为基础向合作伙伴授予访问权限.

其他解释缺少 write API 的文章:

2013-01-04:Google 刚刚宣布 Google+ 历史记录.你可以用它来写时刻"(默认情况下是私有的)但可以通过将它们直接共享到您的流和/或您的个人资料来公开.其中一种矩类型是 CommentActivity.

2012-10-08:现在有一个 重复的错误帖子,只有几条评论,但您也可以在那里查看未来的更新.

2012-06-25:我遇到了 问题跟踪帖子,适用于 Google+ 写入权限.增强请求状态是新的"并且优先级是中"截至 2012 年 6 月 25 日.评论中有一些有趣的链接.

I want to share some information in Google+ wall from my application. For that I go through the Google+ API. In that API they are mentioning how to get access token of a particular user, but they do not mention how to post in users wall using the access token.

解决方案

Well, Google+ doesn't have a "wall," it has "Streams." The proper term might help you find better search results. Either way, unless you're a Google partner, the news isn't good:

The API is currently limited to read-only access. From the 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.

Because it's read-only, you will not be able to update or post any information anywhere through the API -- you can only use it to pull basic information like profile and activity details.

Given that access to the API may change over time, I'll try to keep this answer up to date with information about news or changes related to write access.


News & Updates

2015-04-28: Google+ Domains API was announced way back in August 2013, but somehow I missed its relevance to 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.

No, it does not provide full write access to a user's Google+ profile, but it does give you minor advantages over the Google+ API v1, at least within a domain. This one's mainly for mobile app developers.

2015-01-21: I have revisited many of the sources linked in this answer and searched for news regarding API changes, but Google has been quiet.

2014-03-12: Various discussion threads on Google+ about write access (or lack thereof):

2013-12-03: The issue thread from UPDATE 1 has finally been responded to by a Google+ project member. Additional discussion regarding write-access to Streams is taking place intermittently on the Developing with Google+ community page.

2013-07-05: A developer named Eric Leroy has built an "unofficial" JavaScript library that provides read/write extension to the Google+ API.

2013-05-14: A "social media management company" can gain additional API access by attempting to become a Google+ Pages API Partner.

Here's an excerpt from the Partner Application Form:

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.

Other articles explaining the lack of a write API:

2013-01-04: Google just announced Google+ History. You can use it to write "moments" (which are private by default) but can then be made public by sharing them directly to your stream and/or your profile. One of the moment types is CommentActivity.

2012-10-08: There's now a duplicate bug post with only a few comments, but you can check there for future updates as well.

2012-06-25: I came across the issue tracker post for Google+ Write Access. The enhancement request status is "New" and priority is "Medium" as of June 25th, 2012. There are some links of interest in the comments.

这篇关于如何在 Google+ 墙上发帖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆