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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.