Google 聊天服务器存档 (XEP-0136) [英] Google chat server archive (XEP-0136)

查看:32
本文介绍了Google 聊天服务器存档 (XEP-0136)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法,如何通过使用 XEP-0136 标准从谷歌服务器检索聊天消息的存档,但我只是试图要求该功能才得到这些结果.

I am looking for a way how to retrieve archive of chat messages from google server via using XEP-0136 standard, but I got these results just trying to ask for the feature.

请求:

<iq type="get"><pref xmlns="urn:xmpp:archive"/></iq>

回复:

<iq xmlns="jabber:client" type="error" to="myEmail@gmail.com/9FF72CA7">
    <pref xmlns="urn:xmpp:archive"/>
        <error code="501" type="cancel">
            <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
        </error>
</iq>

所以看起来谷歌没有实现这个功能,但这是真的吗?我不这么认为.

So it looks like google does not implement this feature, but is it true? I don't think so.

尝试设置隐身时也发生了同样的情况,谷歌服务器绝对支持.

The same happened with trying to set invisibility which is definitely supported by Google server.

请求:

<iq type="set" id="invisible1" from="myEmail@gmail.com/00230F07">
    <query xmlns="jabber:iq:privacy">
        <active name="invisible"/>
    </query>
</iq>

回复:

<iq xmlns="jabber:client" type="error" id="invisible1" to="myEmail@gmail.com/00230F07">
    <query xmlns="jabber:iq:privacy">
        <active name="invisible"/>
    </query>
    <error code="501" type="cancel">
        <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
    </error>
</iq>

所以可能我做错了什么.任何帮助将不胜感激.

So probably I am doing something wrong. Any help will be appreciated.

推荐答案

我也已经研究这个问题有一段时间了.正如 JoSo 已经指出的那样,似乎无法通过任何 XMPP 标准访问聊天记录.可以通过 XMPP 与聊天历史记录的唯一交互是通过非标准的 XMPP 扩展.

I've also been looking into this for quite some time now. It appears, as JoSo already pointed out, that there is no way to access the chat history through any XMPP standard. The only interaction with the chat history that is possible via XMPP is enabling or disabling Off-the-Record through a non-standard XMPP extension.

话虽如此,官方的 Google Chat 客户端,例如 Chrome 扩展程序,他们那种废弃的Windows客户端和Android应用程序能够同步聊天.因此,必须至少有某种方式可以从外部访问聊天记录.但是,任何地方都没有关于此功能的文档,并且 Google 论坛中的所有问题都没有得到解答.不少人猜测它可能是通过 XEP-0136 实现的,因为它很有意义,但没有任何官方说明,它也可能是一个完全专有的 XMPP 扩展.

That being said, the official Google Chat clients such as the Chrome extension, their kind of abandoned Windows client and the Android application are able to sync chats. Thus, there must be at least some way to access the chat history from the outside. However, there is no documentation on this feature anywhere and all questions in the Google forums go unanswered. Quite a few people guess that it might be implemented through XEP-0136 as it would make sense, but without any official word it might also be a completely proprietary XMPP extension.

对于隐身,它是受支持的,但谷歌再次使用他们的 自己的方式 而不是使用 XEP-0016 扩展.在这种情况下,至少他们的方式被记录在此处.因此,只需使用他们的 google:shared-status 命名空间将自己设置为不可见.

For invisibility, it is supported but Google again goes their own way instead of using the XEP-0016 extension. At least their way is documented here in this case. Thus, just use their google:shared-status namespace to set yourself invisible.

话虽如此,在 Google 的聊天服务器上尝试任何 XMPP 扩展都是一件真正的痛苦,因为许多功能都是专有的,使用自己笨拙的扩展而不是标准,或者根本没有实现.至少手头的公共扩展的文档是相当不错的.

That all being said, trying out any XMPP extensions with Google's chat servers is a real pain as many features are proprietary, use their own awkward extensions instead of the standard or simply are not implemented. At least the documentation for the hand-full of public extensions is quite good.

如果您正在寻找来自 Google 的官方答案,那么您也很幸运.Pidgin 等第三方客户端的大部分 Google Talk 功能都已被开发人员逆向工程.在您询问之前,他们的音频/视频和文件传输扩展也与当前标准相距甚远.

In case you're looking for official answers from Google, you're also quite of luck. Most of the Google Talk features of third party clients such as Pidgin have been reverse engineered by the developers. Before you ask, their audio/video and filetransfer extensions are also quite some miles off the current standard.

这篇关于Google 聊天服务器存档 (XEP-0136)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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