简体   繁体   English

Google+ Android 应用程序使用什么 API?

[英]What API is used by Google+ Android app?

There is a Google+ mobile application for Android. Android 有一个 Google+ 移动应用程序。 To receive all the information it must be using some API.要接收所有信息,它必须使用一些 API。

How I can retrieve this information from my phone and see from where this app is getting data?如何从手机中检索此信息并查看此应用从何处获取数据? I'd love to access it myself and see how it works.我很想自己访问它,看看它是如何工作的。

You are talking about "reverse engineering" a network protocol.您正在谈论“逆向工程”网络协议。

Full sniffing全面嗅探

This should, in theory, enable you to sniff any https or plain text connection.理论上,这应该使您能够嗅探任何 https 或纯文本连接。

Already available APIs已经可用的 API

I would not try to hijack the connection.我不会试图劫持连接。 There is already a contacts API, it's called xmpp.已经有一个联系人API,它叫xmpp。 You should be able to use the talk integration to pull your friend list.您应该能够使用谈话集成来拉出您的朋友列表。

Future APIs未来的 API

You may also want to sign up for the upcoming API .您可能还想注册即将推出的 API

UPDATE更新

It appears that the Android client uses (at least partially) XMPP. Android 客户端似乎使用(至少部分)XMPP。 The regular client requires an open XMPP connection and you can see a "RealTimeChat" in your logcat.常规客户端需要打开 XMPP 连接,您可以在 logcat 中看到“RealTimeChat”。 It looks like the connection is encrypted because you get a "TLS required" message (the client seems to go through the XMPP connection states).看起来连接已加密,因为您收到“需要 TLS”消息(客户端似乎通过 XMPP 连接状态显示为 go)。 I'm not sure if that's used for client based posts or just for server push.我不确定这是用于基于客户端的帖子还是仅用于服务器推送。 You can see the open connections with the help of "netstat".您可以在“netstat”的帮助下查看打开的连接。 The connection goes away when google plus terminates.当 google plus 终止时,连接消失。

I'd thus expect the API to be really open once released (or rev.eng).因此,我希望 API 一旦发布(或 rev.eng)就会真正打开。

UPDATE 2 (06. Jul. 2011)更新 2(2011 年 7 月 6 日)

Hangout is build on XMPP/MUC+JINGLE (muc == multiuser chat, jingle is roughly a SIP alternative on top of XMPP). Hangout 建立在 XMPP/MUC+JINGLE 之上(muc == 多用户聊天,jingle 大致是 XMPP 之上的 SIP 替代方案)。 And yes, they'll release the the details of it:-)是的,他们会发布它的细节:-)

UPDATE 3 (06. Jul. 2011)更新 3(2011 年 7 月 6 日)

Multiple XMPP components for gtalk/gplus have been revealed by reading the JS code.通过阅读 JS 代码,已经发现了gtalk/gplus 的多个 XMPP 组件 It also emphasizes that they have build a great deal of features on XMPP.它还强调了他们在 XMPP 上构建了大量功能。

They haven't launched the API yet.他们还没有推出 API。 If there is something you want to build on Google+, they encourage you to signup here: https://services.google.com/fb/forms/plusdevelopers/如果您想在 Google+ 上构建一些东西,他们鼓励您在此处注册: https://services.google.com/fb/forms/plusdevelopers/

The API hasn't been released yet. API 尚未发布。 Heck, the product hasn't even been released yet.哎呀,该产品甚至还没有发布。 Thats like developing a video game for playstation 5.这就像为 playstation 5 开发视频游戏一样。

Yes it is.是的。 Its coming "soon" read:: http://www.webpronews.com/api-coming-soon-for-google-plus-2011-07它即将到来的“即将”阅读:: http://www.webpronews.com/api-coming-soon-for-google-plus-2011-07

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM