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.8.6 tmp/test_json_post.rb
flapjack-0.8.5 tmp/test_json_post.rb
flapjack-0.8.4 tmp/test_json_post.rb
flapjack-0.8.3 tmp/test_json_post.rb
flapjack-0.8.2 tmp/test_json_post.rb
flapjack-0.8.1 tmp/test_json_post.rb
flapjack-0.8.0 tmp/test_json_post.rb
flapjack-0.7.35 tmp/test_json_post.rb
flapjack-0.7.34 tmp/test_json_post.rb
flapjack-0.7.33 tmp/test_json_post.rb
flapjack-0.7.32 tmp/test_json_post.rb
flapjack-0.7.31 tmp/test_json_post.rb
flapjack-0.7.30 tmp/test_json_post.rb
flapjack-0.7.29 tmp/test_json_post.rb
flapjack-0.7.28 tmp/test_json_post.rb
flapjack-0.7.27 tmp/test_json_post.rb
flapjack-0.7.26 tmp/test_json_post.rb
flapjack-0.7.25 tmp/test_json_post.rb
flapjack-0.7.22 tmp/test_json_post.rb
flapjack-0.7.21 tmp/test_json_post.rb