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

post http://example.org:9090/plugins/mucservice/chatrooms

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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -