Answer the question
In order to leave comments, you need to log in
How to send a message to Google+ (Hangouts)?
I am writing a rails application, there is a need to send notifications to many users at once.
Is it possible, using the Google API, to send a message or alert from an account or app to multiple users at once? If this is real, then how and with what gem?
Thank you!
Answer the question
In order to leave comments, you need to log in
Using the xmpp4r gem (hangout message)
Example of sending a message:
equire 'xmpp4r'
include Jabber
jid = JID::new('[email protected]')
password = 'secr3t'
cl = Client::new(jid)
cl.connect('166.78.7.179')
cl.auth(password)
cl.send(Presence.new)
to = '[email protected]'
subject = 'XMPP4R test'
body = 'Hi, this is a XMPP4R test'
m = Message::new( to, body ).set_type(:chat).set_id('1').set_subject(subject)
cl.send m
Was it possible to write 1 question, and not 3 (or more)? On the same subject. You're pissed off.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question