ejabberd-通过API获取历史消息mod_mam [英] ejabberd - Fetch the history messages mod_mam via API

查看:178
本文介绍了ejabberd-通过API获取历史消息mod_mam的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ejabberd中激活了mod_mam模块,如下所示:-

I've activated mod_mam module in Ejabberd as follow:-

mod_mam:
    db_type: sql
    assume_mam_usage: true
    default: always
    clear_archive_on_room_destroy: false

如何通过API获取消息?

How do I fetch messages over the APIs?

推荐答案

如果通过API"表示使用mod_http_api,xmlrpc,ReST或类似方法,则不可能.现在,XMPP客户端将使用 https://xmpp.org/extensions中定义的mod_mam/xep-0313.html

If "over the APIs" means using mod_http_api, xmlrpc, ReST, or similar, then that isn't possible. mod_mam right now is to be used by XMPP clients as defined in https://xmpp.org/extensions/xep-0313.html

这篇关于ejabberd-通过API获取历史消息mod_mam的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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