I know that I can create chat room in ejabberd using command
ejabberdctl create_room room_name muc_service xmpp_domain
and I can send invites to users using command
ejabberdctl send_direct_invitation room_name password reason jid1[:jid2]
Can someone tell me how to do the same using ejabberd rest api ?
I'm using oauth for authentication.
I've done following configuration in ejabberd.yml file
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
and also enabled mod_muc_admin in ejabberd.yml file using
modules:
mod_muc_admin: {}