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