Coverage for /Users/kylestark/Development/pyramid-sendgrid-webhooks/pyramid_sendgrid_webhooks/__init__.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*- Pyramid plugin to receive, parse, and dispatch Sendgrid Webhook events
To use this app, add a configuration statement with your intended webhook callback path:
config.include('pyramid_sendgrid_webhooks', '/sendgrid/webhooks')
Then, set up subscribers for any events that you want to be notified of:
from pyramid_sendgrid_webhooks import events
def handle_bounce(event): request = event.request print event.reason
... config.add_subscriber(handle_bounce, events.BounceEvent) """
""" Adds route and view configuration """ |