Create pubsub nodes from backend

What is the best way for creating PubSub nodes from a web server backend?

I would like to create PubSub nodes from the web server backend. Is there a XMLRPC admin interface or is the proper way to send the XEP-0060 messages over a regular XMPP connection (this is what we do today)?

These calls will be made as part of the normal flow in the web page and need to be instantaneous.

Thanks for any advice!

christer.holmer wrote: is the

christer.holmer wrote:

is the proper way to send the XEP-0060 messages over a regular XMPP connection (this is what we do today)?

If that method works, you can continue using it.

christer.holmer wrote:

Is there a XMLRPC admin interface

No, right now there isn't any ejabberd command to manipulate PubSub. It could be written.

Another possibility would be to install mod_rest from ejabberd-modules SVN. That module creates an HTTP miniserver where you can send POST queries to send arbitrary XMPP stanzas. See in its README.txt the "EXAMPLE REST CALL".

Syndicate content