0.02
No commit activity in last 3 years
No release in over 3 years
ruby client for the openfire xmpp-server user_service api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 2.6.0
 Project Readme

openfire_api¶ ↑

a ruby client for openfire’s user_service api

<img src=“https://secure.travis-ci.org/paulasmuth/openfire_api.png” />

Installation¶ ↑

In your Gemfile

gem "mtgox-ruby", :git => "git://github.com/paulasmuth/openfire_api.git"

or

gem install git://github.com/paulasmuth/openfire_api.git

Usage¶ ↑

create a new userservice object

api = OpenfireApi::UserService.new(:url => "http://localhost:9090/", :secret => "BIGSECRET")

register new user

api.add_user!(:username => "user", :password => "pass")
api.add_user!(:username => "user", :password => "pass", :name => ..., :email => ..., :groups => ...)

update existing user

api.update_user!(:username => "user", :password => "pass")
api.update_user!(:username => "user", :password => "pass", :name => ..., :email => ..., :groups => ...)

delete user

api.delete_user!(:username => "user")

lock user

api.lock_user!(:username => "user")

unlock user

api.unlock_user!(:username => "user")