使用API​​从Google Plus社区获取所有事件 [英] get all events from a Google Plus Community using API

查看:104
本文介绍了使用API​​从Google Plus社区获取所有事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我们很高兴利用几个Google+社区与来自世界各地的程序员和学生协调配对编程活动:

So we are having a great time using a couple of Google+ communities to co-ordinate pair programming events with programmers and students from all around the world:

https://plus.google.com/communities/100279740984094902927 https://plus.google.com/communities/101007836695292894562

但是,我真的很想开始分析结对编程事件,因此想通过只读Google API获取有关事件的信息.我看到有一种执行此操作的机制:

However I'd really like to start analyzing the pair programming events, and so want to grab information about the events via the read-only Google API. I see that there is a mechanism for doing this:

是否有适用于Google Plus活动的API

但是,我不知道如何从事件ID中确定活动ID是什么,或者如何请求与社区相关的所有事件.例如,我们有以下事件:

However I am at a loss for how to work out what the activity id is from the event id, or how to request all the events associated with a community. For example we have this event:

https://plus.google.com/events/cutfjr3ftm3mglt32p54h6fgec0

如果我知道它的活动ID,则可以使用如下代码:

and if I knew the activity id for it I could use something like this:

https://developers.google.com/apis-explorer/#p/plus/v1/plus.activities.get?activityId=z13pdphaylvksztxx04cibvggseginlbrp40k&_h=1&

获取有关事件的信息.但是,URL中的事件ID与活动ID不同,或者至少不返回任何内容.也许是因为这是私人活动?也就是说,我也无法在公开的直播"事件中获取信息.

to grab info about the event. However the event id in the URL is different from the activity id, or at least nothing is returned. Perhaps because it is a private event? That said I can't grab info on public "on air" events either.

到目前为止,我已经设法在自己的活动流中搜索公共事件.从那里,我可以进入我凝视的公开视频群聊的活动ID:

What I've managed so far is to be able to search for public events in my own activity stream. From there I can get to an activity id for a public hangout I stared:

z13adpyrwlaytjicm22bvjhjkly0yfctz

z13adpyrwlaytjicm22bvjhjkly0yfctz

这为我提供了有关该事件的一些有用信息,但是我真正想要的是获取与我们社区相关的所有事件的信息,以便我们可以对其进行分析并更好地支持它们.

which gives me some useful information on that event, but what I'm really after is to get the info on all the events associated with our communities so that we can analyze them and better support them.

推荐答案

当前,不支持使用API​​从Google+社区检索帖子.一段时间以来,有人在v1 API中使用活动方法来检索帖子,但是从未得到支持,并且最终停止了工作.

Currently, there is no support for retrieving posts from a Google+ community with an API. For a period of time, some people were using the activities methods in the v1 API to retrieve posts but this was never supported and eventually stopped working.

查看全文

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