Sha256: e053da792f65c46b0b5af7aacbe9036f9ecddaca1e0700c0cfd02ca5c159f160
Contents?: true
Size: 481 Bytes
Versions: 42
Compression:
Stored size: 481 Bytes
Contents
#!/usr/bin/env ruby require 'httparty' require 'oj' Oj.default_options = { :indent => 0, :mode => :strict } @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 => Oj.dump(@payload), :options => { :headers => { 'ContentType' => 'application/json' } })
Version data entries
42 entries across 42 versions & 1 rubygems