HipChat
Easily control HipChat with Ruby.
Installation
Add this line to your application's Gemfile:
gem 'hip_chat'
and run bundle install
Features
Currently, this gem lets you view, edit, create, and destroy users on HipChat.
Features for the Near Future
Providing more methods to interact with HipChat. The long-term plan is to cover all of the interactions possible with HipChat API v2.
Usage
@api = HipChat::Api.new(authorization_token)
@users = @api.users
finder = {
mention_name: "SyedHumzaShah"
}
user = @users.find(mention_name: "SyedHumzaShah")
attributes = {
email: "some_email@domain.com",
name: "Syed Humza Shah",
password: some_password
}
user = @users.create!(attributes)
user.name = "Syed Humza"
user.save!
user.destroy!
@api.refresh_users