Skip to content

rorito/django-sendgrid-events

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-sendgrid-events

a simple app to provide and endpoind for and handle batch events from SendGrid's Event API

Documentation

Documentation can be found online at http://django-sendgrid-events.rtfd.org.

How to Use with Celery

1. In the root of your project, create a sendgrid_event_hooks.py file https://gist.github.com/rorito/1f2add7742dcd3449021

2. In settings.py (or equivalent), add: .. code-block:: python

SENDGRID_EVENT_HANDLER = 'tribute.sendgrid_event_hooks.CustomEventHandler'

3. Wherever you have integrated django-sendgrid-events processing in your app (for example in your tasks.py), add the following: .. code-block:: python

from django.core.serializers import serialize from sendgrid_events.models import Event

@shared_task def process_sendgrid_events(data):

events = Event.process_batch(data=data) return json.loads(serialize('json', events))

Commercial Support

This app, and many others like it, have been built in support of many of Eldarion's own sites, and sites of our clients. We would love to help you on your next project so get in touch by dropping us a note at [email protected].

About

a django app for handling sendgrid batch events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%