Hi,
I am new to ejabberd, and I want to use it as a push notification server, through which I can send messages to target clients. The server should provide the following ways to interact with:
1, RESTful web interfaces;
2, An admin web page.
I was wondering how could I implement those interfaces on top of ejabberd's modules.
Any advice will be appreciated.
From process-one, I found
From process-one, I found mod_rest is useful.
Does the mod_restful support
Does the mod_restful support ssl?
I have created a module that
I have created a module that provides an extendable RESTful API framework. You can find it on this site here: http://www.ejabberd.im/mod_restful
Take a look at mod_restful_admin, which might be able to do what you want. Otherwise you can implement your own REST interface using gen_restful_api.
Take a look at
Take a look at http://www.ejabberd.im/mod_restful
I tried mod_restful and added
I tried mod_restful and added
{{8088, {127, 0, 0, 1}}, ejabberd_http,
[{request_handlers, [{["api"], mod_restful}]}]}
and
{mod_restful, [
{api,
[
{["admin"], mod_restful_admin, [
{key, "secret"},
{allowed_commands, [register, unregister]}
]},
{["register"], mod_restful_register, [{key, "secret"}]}
]}
]}
to the ejabberd.cfg file
but when i started ejabberd
i get this error
error: undef
=ERROR REPORT==== 2013-12-05 12:26:50 ===
C(<0.36.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed.
I don't know how to build the mod. can someone help? Do I need to move a file somewhere like with other mods?
Best Regards,
Stevenson Lee