post message to HipChat http gateway ikasan
.
see: https://github.com/studio3104/ikasan
Add this line to your application's Gemfile:
gem 'ikasan-client', github: 'studio3104/ikasan-client'
And then execute:
$ bundle
require 'ikasan/client'
# ikasan server: http://localhost:4979
ikasan = Ikasan::Client.new('localhost')
# ikasan server: http://localhost
ikasan = Ikasan::Client.new('localhost', 80)
# use https, and not verify certificate
ikasan = Ikasan::Client.new('localhost', ssl: true)
# use https, and verify default certificate
ikasan = Ikasan::Client.new('localhost', ssl: true, verify_ssl: true)
# use https, and verify specified certificate
ikasan = Ikasan::Client.new('localhost', ssl: true, verify_ssl: true, ca_file: '/path/to/ca_file')
ikasan.notice('#channel', 'message', color: 'random', message_format: 'text')
ikasan.privmsg('#chennel', 'message', color: 'random', message_format: 'text')
- Fork it ( http://github.com/studio3104/ikasan-client/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request