Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- require "activesupport"
- require "satisfaction"
- sfn = Satisfaction.new
- sfn.set_consumer(INVOLVER_CONSUMER, INVOLVER_SECRET)
- company_id = "emerald_city"
- person_id = SOME_PERSON_ID
- result = sfn.post("/people/#{person_id}/topics", {
- :'topic[company_domain]' => company_id,
- :'topic[subject]' => "Hello there, Mongbats",
- :'topic[products]' => "Mongbats", # this can be a comma-separated list of product names.
- })
- puts result.inspect
Add Comment
Please, Sign In to add comment