Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. require "rubygems"
  2. require "activesupport"
  3. require "satisfaction"
  4.  
  5. sfn = Satisfaction.new
  6.  
  7. sfn.set_consumer(INVOLVER_CONSUMER, INVOLVER_SECRET)
  8.  
  9. company_id = "emerald_city"
  10. person_id = SOME_PERSON_ID
  11. result = sfn.post("/people/#{person_id}/topics", {
  12. :'topic[company_domain]' => company_id,
  13. :'topic[subject]' => "Hello there, Mongbats",
  14. :'topic[products]' => "Mongbats", # this can be a comma-separated list of product names.
  15. })
  16.  
  17. puts result.inspect
Add Comment
Please, Sign In to add comment