Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ruby client for the openfire xmpp-server user_service api
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Fixing a compatibility problem w/ ruby 1.9.3, since the HTTP::Net api…
spec
.gitignore Initial commit to openfire_api.
Gemfile
Gemfile.lock error handling
Rakefile
VERSION
openfire_api.gemspec updated gemspec
readme.rdoc readme

readme.rdoc

openfire_api

a ruby client for openfire's user_service api

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")
Something went wrong with that request. Please try again.