Sha256: c8527b82869928bd42d729c7d897dd319979c098804c82426bb81db9a3268647
Contents?: true
Size: 428 Bytes
Versions: 19
Compression:
Stored size: 428 Bytes
Contents
#!/usr/bin/env ruby require 'HTTParty' require 'json' @payload ={ "email" => "phil@gmail.com", "token" => "mytokenstuff", "content" => "here is some content", "notification_type" => "1", "name" => "here is a name", "auto_action" => "true" } HTTParty.post( 'http://localhost:4091/notification_rules', :body => JSON.dump(@payload), :options => { :headers => { 'ContentType' => 'application/json' } })
Version data entries
19 entries across 19 versions & 1 rubygems