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

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

问题描述

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

解决方案

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

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

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

由于它是只读的,因此您将无法通过API在任何地方更新或发布任何信息-您只能使用它来提取个人资料和活动详细信息之类的基本信息.

鉴于对API的访问可能会随时间而变化,因此,我将尝试通过有关新闻或与 write 访问相关的更改的信息来使该答案保持最新.


新闻和更新

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

Google+域API允许Google Apps客户和ISV利用增强的Google+ API来构建可通过多种方式使用的工具和服务.

否,它不会为用户的Google+个人资料提供完整写入权限,但至少在一个域内,它确实比Google+ API v1具有次要的优势.这主要是针对移动应用程序开发人员的.

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

2014-03-12 :Google+上有关写访问(或缺少写访问)的各种讨论线程:

2013-12-03 :来自UPDATE 1的问题线程最终是使用Google+开发时,间歇地进行了有关对Streams进行写访问的其他讨论.社区页面.

2013-07-05 :名为 Eric Leroy 的开发人员已构建非官方" JavaScript库,提供对Google+ API的读/写扩展.

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

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

Google+专页API使社交媒体管理公司可以将Google+专页管理功能添加到其工具中.可以通过白名单访问此API,并根据公司对此API的适用性,逐个公司授予合作伙伴访问权限.

其他说明缺少写API的文章:

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

2012-10-08 :现在有一个问题跟踪器帖子用于Google+ Write Access.增强请求状态为新".并且优先级是中".截至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天全站免登陆