I'm looking for a way to send a message to the new Gmail chat window - Google Hangout apparently. I'm aware XMPP is supported for old-style chats, but is there an API to send anything using Google Hangouts from node.js?
Asked
Active
Viewed 4,234 times
1 Answers
4
https://github.com/jaxbot/hangouts-bot
Install
npm install hangouts-bot
Code
var hangoutsBot = require("hangouts-bot");
var bot = new hangoutsBot("someone@gmail.com", "password");
bot.on('online', function() {
console.log('online');
});
bot.on('message', function(from, message) {
console.log(from + ">> " + message);
});
Original source: hangouts-bot README

Caio Wilson
- 353
- 2
- 12

delsanic
- 777
- 1
- 5
- 14
-
An FYI to any new people finding this answer from google, As of at least 2018 google has turn off XMPP integrations. https://github.com/jaxbot/hangouts-bot/issues/14 – Christopher Chase Nov 29 '21 at 00:03