EjabberdRest
Ruby interface for ejabberd mod_rest
Implemented method
- Add user
- Delete user
Installation
Add this line to your application's Gemfile:
gem 'ejabberd_rest'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ejabberd_rest
Usage
client = EjabberdRest::Client.new(url: "http://dreamland:5285")
client.add_user("ruby1", "dreamland", "ruby1password")
=> true
client.delete_user("ruby1", "dreamland")
=> "0"
Contributing
- Fork it ( http://github.com/
/ejabberd_rest/fork ) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request