hipchat-api

0.0.3 • Public • Published

hipchat-api

Summary

HipChat API Client

Installation

$ npm install hipchat-api

Usage

var HipchatApi = require('hipchat-api');
Constructor
// configure
var options = {
    "timeout": 5000, // http timeout (ms)
    "maxSockets": 100, // http agents
    "key": "xxxxx", // API-key
    "proxy": "http://proxyhogehoge/", // http-proxy, false: if not use
};
// setup
var hipChat = new HipchatApi(auth_token);

API

list Rooms

hipChat.listRooms()

Create Room

hipChat.createRoom()

Show Room

hipChat.showRoom()

Delete Room

hipChat.deleteRoom()

Post Message

hipChat.postMessage()

Show Message History

hipChat.getHistory()
example) Get Room List
hipChat.listRooms(function(err, rooms) {
    console.log(rooms);
});

Readme

Keywords

none

Package Sidebar

Install

npm i hipchat-api

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tanaka_kiyoshi