Posted By

jl046291 on 05/28/18


Tagged


Versions (?)

HTTParty


 / Published in: Ruby
 

This method is inside a class.

  1. include HTTParty
  2.  
  3. # method uses HTTParty to Post a string to slack
  4. def post_slack_message
  5. HTTParty.post("https://hooks.slack.com/services/XXXXXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXX",
  6. :body => {"text" => "*********** TEST *************"}.to_json)
  7.  
  8. end

Report this snippet  

You need to login to post a comment.