分析金字塔应用中传入的SendGrid Webhook
pyramid-sendgrid-webhooks的Python项目详细描述
分析金字塔应用程序中传入的SendGrid Webhook
- 自由软件:麻省理工学院许可证
- 文档:https://pyramid_sendgrid_webhooks.readthedocs.org。
功能
若要使用此应用程序,请在预期的webhook中添加配置语句 回调路径:
config.include('pyramid_sendgrid_webhooks','/sendgrid/webhooks')
然后,为您要通知的任何事件设置订户:
frompyramid_sendgrid_webhooksimporteventsdefhandle_bounce(event):request=event.requestprintevent.reason...config.add_subscriber(handle_bounce,events.BounceEvent)
目前,应用程序在{PREFIX}/receive
添加一个端点。这将是
要给SendGrid的Webhook路径。在上面的例子中,完整的端点
因此将位于/sendgrid/webhooks/receive
。
历史记录
1.2.2(2015-12-15)
- 使用模块更新文档
1.2.1(2015-12-15)
- 更新trove分类器
1.2.0(2015-12-14)
- setup.py中的正确软件包列表
1.0.0(2015-12-07)
- pypi上的第一个版本。