Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hipchat-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hipchat-api

  • 1.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

hipchat-api

Project Status Build Status

Ruby gem for interacting with HipChat API

Compatibility

hipchat-API has been tested under Ruby 1.9.3

Requirements

  • HTTParty

Install

gem install hipchat-api

Example

require 'hipchat-api'
=> true
hipchat_api = HipChat::API.new('api_token')
=> #<HipChat::API:0x000001013d7280 @token="api_token", @hipchat_api_url="https://api.hipchat.com/v1">

API methods

  • Room-related methods
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', message_format = 'html')
rooms_topic(toom_id, topic, from = 'API')
rooms_show(room_id)
  • User-related methods
users_list(include_deleted = 0)
users_create(email, name, title, is_group_admin = 0, password = nil, timezone = 'UTC')
users_delete(user_id)
users_show(user_id)
users_undelete(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 (c) 2011-2014 David Czarnecki. See LICENSE.txt for further details.

FAQs

Package last updated on 10 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc