Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/elcuervo/rest_ejabberd
- Owner: elcuervo
- Created: 2012-07-04T17:50:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-06T15:36:37.000Z (over 12 years ago)
- Last Synced: 2024-11-28T23:28:29.484Z (about 1 month ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```