Send Mass Push Notifications - Ruby

Source Code:

  

require 'uri'
require 'net/http'

url = URI("https://send.pushnotificationapi.com/v1/push/send")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request["cache-control"] = 'no-cache'
request.body = "api_key=YOUR-API-KEY&msg_title=YOUR-MESSAGE&destination_url=YOUR-URL"

response = http.request(request)
puts response.read_body