Ruby interface for ejabberd mod_rest
- Add user
- Delete user
Add this line to your application's Gemfile:
gem 'ejabberd_rest'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ejabberd_rest
client = EjabberdRest::Client.new(url: "http://dreamland:5285")
client.add_user("ruby1", "dreamland", "ruby1password")
=> true
client.delete_user("ruby1", "dreamland")
=> "0"
- 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