server - is it possible to connect Openfire via http request? -
suppose have openfire xmpp server, 10 android tablab connected , able communicate each other via openfire server. , there server third party call server a. possible let server send http request openfire server config setting? such create chat room, delete chat room , on.
yes can create chat rooms on http request of openfire muc service plugin. can download plugin here: http://www.igniterealtime.org/projects/openfire/plugins.jsp full documentation rest interface here: https://www.igniterealtime.org/projects/openfire/plugins/mucservice/readme.html
e.g. create chat room:
header: authorization: basic ywrtaw46mtizndu= header: content-type: application/xml
payload example 1 (required parameters):
<chatroom> <naturalname>global-1</naturalname> <roomname>global</roomname> <description>global chat room</description> </chatroom>
if need create users on http request, use user service plugin.
Comments
Post a Comment