Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-hipchatpublic

    Summary

    A simple node.js library for communicating with the HipChat REST API. Supports full Hipchat API

    You can also install via npm:

    npm install node-hipchat
    

    Methods implemented:

    rooms/create
    rooms/delete
    rooms/history
    rooms/list
    rooms/message
    rooms/show

    users/create
    users/delete
    users/list
    users/show
    users/update

    Examples

    First make sure you have an Admin API Key.

    Send a message to a room

    var hipchat = require('node-hipchat');
    
    var HC = new hipchat('YOUR_API_KEY');
    
    HC.listRooms(function(data) {
      console.log(data); // These are all the rooms
    });
    
    var params = {
      room: 123456, // Found in the JSON response from the call above
      from: 'FunkyMonkey',
      message: 'Some HTML <strong>formatted</strong> string',
      color: 'yellow'
    };
    
    HC.postMessage(params, function(data) {
      // Message has been sent!
    });
    

    Keywords

    none

    install

    npm i node-hipchat

    Downloadslast 7 days

    679

    version

    0.4.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar
    • avatar