1.0.1 • Published 7 years ago

hangouts-chat v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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: