Uses the hangouts-chat gem
brew install jq
rvm install ruby-2.5.7
rvm gemset create hangouts && rvm gemset use hangouts
bundle install
Open two terminal sessions. In the first run ruby app.rb -b 0.0.0.0
In the second POST webhook.json
to the Sinatra endpoint
curl -s -XPOST -H "Content-Type: application/json" \
-d @webhook.json \
"http://localhost:4567/event" | jq