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

Version Path
flapjack-0.7.18 tmp/test_json_post.rb
flapjack-0.7.17 tmp/test_json_post.rb
flapjack-0.7.16 tmp/test_json_post.rb
flapjack-0.7.15 tmp/test_json_post.rb
flapjack-0.7.14 tmp/test_json_post.rb
flapjack-0.7.13 tmp/test_json_post.rb
flapjack-0.7.12 tmp/test_json_post.rb
flapjack-0.7.11 tmp/test_json_post.rb
flapjack-0.7.10 tmp/test_json_post.rb
flapjack-0.7.9 tmp/test_json_post.rb
flapjack-0.7.8 tmp/test_json_post.rb
flapjack-0.7.7 tmp/test_json_post.rb
flapjack-0.7.6 tmp/test_json_post.rb
flapjack-0.7.5 tmp/test_json_post.rb
flapjack-0.7.4 tmp/test_json_post.rb
flapjack-0.7.3 tmp/test_json_post.rb
flapjack-0.7.2 tmp/test_json_post.rb
flapjack-0.7.1 tmp/test_json_post.rb
flapjack-0.7.0 tmp/test_json_post.rb