Omnihooks::SendgridParse

This gem implements a Sendgrid Parse Webhook strategy for OmniHooks.

The strategy will accept the HTTP POST message from Sendgrid, using the email subject as the event type.

Installation

Add this line to your application's Gemfile:

gem 'omnihooks-sendgrid-parse'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omnihooks-sendgrid-parse

Usage

Rack::Builder.new do
    use OmniHooks::Builder do
      provider :sendgrid_parse do
        configure do |c|
          c.subscribe 'email subject', Proc.new { |event| nil }
        end
      end
    end
end

See Omnihooks Usage for additional usage options for subscribing to events.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dropstream/omnihooks-sendgrid.