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

hip_chat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hip_chat

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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)

# get list of users:
@users = @api.users

# find users by id, email, or mention_name:
finder = {
  mention_name: "SyedHumzaShah"
} # or {id: id} or {email: email}
user = @users.find(mention_name: "SyedHumzaShah")
# ^ alternate: HipChat::User.find(token, finder)

# create new users:
attributes = {
  email: "some_email@domain.com",
  name: "Syed Humza Shah",
  password: some_password
}
user = @users.create!(attributes) # or @users.create(attributes)
# ^ alternate: HipChat::User.create(token, attributes)

# update users:
user.name = "Syed Humza"
user.save! # or user.save

# delete a user:
user.destroy! # or user.destroy

# refresh users' list
@api.refresh_users

FAQs

Package last updated on 14 Apr 2015

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