Sha256: 8958aeacfdc5a0e4877693ad10dceb8dc039bbffbfd8624ae224b4bc0453c569

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 Bytes

Contents

require 'omnihooks'
require 'multi_json'

module OmniHooks
  module Strategies

    #
    # When creating a WebHook in ClickFunnels, their system will make an HTTP POST request to the URL funnel_webhooks/test in an effort to validate 
    #
    # @author Karl Falconer <karl@getdropstream.com>
    #
    class ClickFunnelsTest
      include OmniHooks::Strategy
      option :name, 'funnel_webhooks/test'

      event do
        raw_info
      end

      event_type do
        'test'
      end

      private

      def raw_info
        @raw_info ||= MultiJson.decode(request.body)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnihooks-click-funnels-0.2.0 lib/omnihooks/strategies/click_funnels_test.rb
omnihooks-click-funnels-0.1.0 lib/omnihooks/strategies/click_funnels_test.rb