[英]Is it possible to send a Google hangouts chat message using node.js?
I'm looking for a way to send a message to the new Gmail chat window - Google Hangout apparently. 我正在寻找一种将消息发送到新的Gmail聊天窗口的方法-显然是Google Hangout。 I'm aware XMPP is supported for old-style chats, but is there an API to send anything using Google Hangouts from node.js?
我知道XMPP支持旧式聊天,但是是否有API可以使用Node.js的Google Hangouts发送任何内容?
https://github.com/jaxbot/hangouts-bot 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 原始资料: hangouts-bot README
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.