hipchat-api

HipChat API Client

hipchat-api

HipChat API Client

$ npm install hipchat-api
var HipchatApi = require('hipchat-api');
// 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);
hipChat.listRooms()
hipChat.createRoom()
hipChat.showRoom()
hipChat.deleteRoom()

Post Message

hipChat.postMessage()
hipChat.getHistory()
hipChat.listRooms(function(err, rooms) {
    console.log(rooms);
});