class SlackIdVerifyJobJob < ApplicationJob
  queue_as :default

  def perform()
    # curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/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

    # Equivalent ruby code: 
    url = "https://hooks.slack.com/services/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"
    options = {
      body: {"text": "Hello, World!"}.to_json,
      headers: {"Content-Type" => "application/json"},
    }
    response = HTTParty.post(url, options)
    puts response
  end
end