Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'flowdock'
- # create a new Flow object with API Token and sender information
- flow = Flowdock::Flow.new(:api_token => "56188e2003e370c6efa9711988f7bf02",
- :source => "myapp",
- :from => {:name => "John Doe", :address => "[email protected]"})
- # send message to the flow
- flow.send_message(:subject => "Greetings from Flowdock API Gem!",
- :content => "<h2>It works!</h2><p>This is a test message.</p>",
- :tags => ["cool", "stuff"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement