【发布时间】:2016-11-27 01:57:04
【问题描述】:
我知道我可以使用命令在 ejabberd 中创建聊天室
ejabberdctl create_room room_name muc_service xmpp_domain
我可以使用命令向用户发送邀请
ejabberdctl send_direct_invitation room_name password reason jid1[:jid2]
谁能告诉我如何使用 ejabberd rest api 做同样的事情?
我正在使用 oauth 进行身份验证。
我已经在 ejabberd.yml 文件中完成了以下配置
port: 5280
module: ejabberd_http
request_handlers:
"/websocket": ejabberd_http_ws
"/log": mod_log_http
"/oauth": ejabberd_oauth
"/api": mod_http_api
web_admin: true
http_bind: true
register: true
captcha: true
commands_admin_access: configure
commands:
- add_commands:
- user
- status
oauth_expire: 3600
oauth_access: all
并且还使用
在 ejabberd.yml 文件中启用了 mod_muc_adminmodules:
mod_muc_admin: {}
【问题讨论】:
标签: oauth ejabberd multiuserchat ejabberd-api