Sha256: 89c13dd5736b913df5be9b618fdd2aab6303a9d87281050527cfab5c53f736b3

Contents?: true

Size: 472 Bytes

Versions: 21

Compression:

Stored size: 472 Bytes

Contents

#!/usr/bin/env ruby

require 'httparty'

require 'flapjack'

@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 => Flapjack.dump_json(@payload),
               :options => { :headers => { 'ContentType' => 'application/json' } })

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
flapjack-1.6.0 tmp/test_json_post.rb
flapjack-1.6.0rc4 tmp/test_json_post.rb
flapjack-1.6.0rc3 tmp/test_json_post.rb
flapjack-1.6.0rc2 tmp/test_json_post.rb
flapjack-1.6.0rc1 tmp/test_json_post.rb
flapjack-1.5.0 tmp/test_json_post.rb
flapjack-1.5.0rc1 tmp/test_json_post.rb
flapjack-1.4.0 tmp/test_json_post.rb
flapjack-1.4.0rc1 tmp/test_json_post.rb
flapjack-1.3.0 tmp/test_json_post.rb
flapjack-1.3.0rc3 tmp/test_json_post.rb
flapjack-1.3.0rc2 tmp/test_json_post.rb
flapjack-1.3.0rc1 tmp/test_json_post.rb
flapjack-1.2.2 tmp/test_json_post.rb
flapjack-1.2.1 tmp/test_json_post.rb
flapjack-1.2.1rc3 tmp/test_json_post.rb
flapjack-1.2.1rc2 tmp/test_json_post.rb
flapjack-1.2.1rc1 tmp/test_json_post.rb
flapjack-1.2.0 tmp/test_json_post.rb
flapjack-1.2.0rc2 tmp/test_json_post.rb