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

Version Path
flapjack-0.9.6 tmp/test_json_post.rb
flapjack-0.9.5 tmp/test_json_post.rb
flapjack-0.9.4 tmp/test_json_post.rb
flapjack-1.1.0 tmp/test_json_post.rb
flapjack-1.0.0 tmp/test_json_post.rb
flapjack-1.0.0rc6 tmp/test_json_post.rb
flapjack-1.0.0rc5 tmp/test_json_post.rb
flapjack-0.9.3 tmp/test_json_post.rb
flapjack-1.0.0rc3 tmp/test_json_post.rb
flapjack-1.0.0rc2 tmp/test_json_post.rb
flapjack-0.9.2 tmp/test_json_post.rb
flapjack-0.9.1 tmp/test_json_post.rb
flapjack-1.0.0rc1 tmp/test_json_post.rb
flapjack-0.9.0 tmp/test_json_post.rb
flapjack-0.8.12 tmp/test_json_post.rb
flapjack-0.8.11 tmp/test_json_post.rb
flapjack-0.8.10 tmp/test_json_post.rb
flapjack-0.8.9 tmp/test_json_post.rb
flapjack-0.8.8 tmp/test_json_post.rb
flapjack-0.8.7 tmp/test_json_post.rb