B
B
bmalets2015-03-30 17:47:40
ruby
bmalets, 2015-03-30 17:47:40

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

3 answer(s)
B
bmales, 2015-03-30
@bmalets

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

G
God Emperor, 2015-03-30
@God-emperor

Was it possible to write 1 question, and not 3 (or more)? On the same subject. You're pissed off.

M
Max, 2015-03-30
@AloneCoder

When I need some code or an example of it, I always go to github search

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question