Created
March 31, 2015 15:52
-
-
Save garlandkr/0c10a9df23b109146b8b to your computer and use it in GitHub Desktop.
Ruby HipChat Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'hipchat' | |
hipchat_room = 123456 | |
hipchat_name = 'Bot Name' | |
msg = 'This is a test' | |
api_token = '1234567890-=!@#$%^&*()_+' | |
client = HipChat::Client.new(api_token, :api_version => 'v2') | |
client[hipchat_room].send(hipchat_name, msg, :color => 'purple') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment