hipchat-api =========== [![Project Status](http://stillmaintained.com/czarneckid/hipchat-api.png)](http://stillmaintained.com/czarneckid/hipchat-api) [![Build Status](http://travis-ci.org/czarneckid/hipchat-api.png)](http://travis-ci.org/czarneckid/hipchat-api) Ruby gem for interacting with HipChat API * https://www.hipchat.com/docs/api Compatibility ------------- hipchat-API has been tested under Ruby 1.8.7 and Ruby 1.9.2 Requirements ------------ * HTTParty Install ------- * gem install hipchat-api Example ------- ```ruby ruby-1.9.2-p180 :001 > require 'hipchat-api' => true ruby-1.9.2-p180 :002 > hipchat_api = HipChat::API.new('api_token') => # ``` API methods ----------- * Room-related methods ```ruby rooms_create(name, owner_user_id, privacy = 'public', topic = '', guest_access = 0) rooms_delete(room_id) rooms_list rooms_history(room_id, date, timezone) rooms_message(room_id, from, message, notify = 0, color = 'yellow') rooms_show(room_id) ``` * User-related methods ```ruby users_list users_create(email, name, title, is_group_admin = 0, password = nil, timezone = 'UTC') users_delete(user_id) users_show(user_id) users_update(user_id, email = nil, name = nil, title = nil, is_group_admin = nil, password = nil, timezone = nil) ``` Contributing to hipchat-api --------------------------- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it * Fork the project * Start a feature/bugfix branch * Commit and push until you are happy with your contribution * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. Copyright --------- Copyright (c) 2011 David Czarnecki. See LICENSE.txt for further details.