hipchat-message
Version:
Send a simple Hipchat Message
74 lines (49 loc) • 1.78 kB
Markdown
Send a simple Hipchat Message
This extension does not do any more than just that - send an html message to a Hipchat room.
npm install hipchat-message
var HipChat = require('hipchat-message');
var hipchat = new HipChat({
'auth_token': '8a9cf80b45445999c5fef17c8c8615',
'room_id' : 'TEST',
'from' : 'hipchat-message',
title : '<strong>Some Title</strong>',
format : 'html',
},function(){
console.log('call completed')
});
hipchat.info("Popup gray message",true);
hipchat.success("Background green message",false);
hipchat.warn("Popup yellow message",true);
hipchat.error("Background red message");
Display gray information message
Display yellow warning message
Display green warning message
Display red error message
Display red error message
Display red error message
Hipchat Authentication Token
The name or id of the room where you want to display your message
Max 15 character from-field text
Optional Title to be displayed before the rest of the message
Should be `html`
The message color
**0** will indicate a background message
**1** will indicate a notification is required