Advertisement
Guest User

Untitled

a guest
Nov 30th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. require 'flowdock'
  2.  
  3. # create a new Flow object with API Token and sender information
  4. flow = Flowdock::Flow.new(:api_token => "56188e2003e370c6efa9711988f7bf02",
  5. :source => "myapp",
  6. :from => {:name => "John Doe", :address => "[email protected]"})
  7.  
  8. # send message to the flow
  9. flow.send_message(:subject => "Greetings from Flowdock API Gem!",
  10. :content => "<h2>It works!</h2><p>This is a test message.</p>",
  11. :tags => ["cool", "stuff"])
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement