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 = IncomingWebHook const incomingWebHook = 'YOUR_WEB_HOOK_URL' const messageObject = text: 'hello' incomingWebHook incomingWebHook
Docs
For messageObject reference object check Google documentation:
- Simple Text Messages: https://developers.google.com/hangouts/chat/reference/message-formats/basic
- Card Formatting Messages: https://developers.google.com/hangouts/chat/reference/message-formats/cards
- Creating an incoming webhook: https://developers.google.com/hangouts/chat/how-tos/webhooks