Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elcuervo/rest_ejabberd

Ruby interface for ejabberd's mod_restful
https://github.com/elcuervo/rest_ejabberd

Last synced: about 1 month ago
JSON representation

Ruby interface for ejabberd's mod_restful

Awesome Lists containing this project

README

        

# RestEjabberd

Ruby interface to ejabberd's [https://github.com/jadahl/mod_restful](mod_restful)

This allows to:

* create a user
* delete a user
* check existance
* change password

```ruby
client = RestEjabberd.new secret: 'shhhhh', host: 'chat.server.com/api/'
client.register 'me@localhost', '123123'
client.is_registered? 'me@localhost'
#=> true
client.change_password 'me@localhost', '123123', 'asdasd'
#=> true
client.unregister 'me@localhost', 'asdasd'
#=> true
```