hangouts-chat

1.0.1 • Public • Published

hangouts-chat

Simple client for Google Hangouts Chat

Features

  • Send messages to an incoming webhook registered to a Hangouts Chat room

Installing

$ npm install hangouts-chat

Using

const IncomingWebHook = require('hangouts-chat').IncomingWebHook
 
const incomingWebHook = new IncomingWebHook('YOUR_WEB_HOOK_URL')
 
const messageObject = {text: 'hello'}
 
incomingWebHook.send(messageObject)
 
incomingWebHook.sendText('hello')

Docs

For messageObject reference object check Google documentation:

Readme

Keywords

Package Sidebar

Install

npm i hangouts-chat

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.61 kB

Total Files

5

Last publish

Collaborators

  • malykhin