django_opt_out.plugins.sparkpost package
Submodules
django_opt_out.plugins.sparkpost.apps module
-
class
django_opt_out.plugins.sparkpost.apps.
DjangoOptOutSparkPostConfig
(app_name, app_module)[source]
Bases: django.apps.config.AppConfig
-
name
= 'django_opt_out.plugins.sparkpost'
-
ready
()[source]
Override this method in subclasses to run code when Django starts.
-
verbose_name
= 'Messaging Opt-Outs SparkPost plugin'
django_opt_out.plugins.sparkpost.hooks module
-
django_opt_out.plugins.sparkpost.hooks.
create_opt_out
(sender, request, email, data, **kwargs)[source]
-
django_opt_out.plugins.sparkpost.hooks.
get_client
(setting='SPARKPOST_API_KEY')[source]
-
django_opt_out.plugins.sparkpost.hooks.
remove_suppression
(sender, view, request, opt_out, **kwargs)[source]
-
django_opt_out.plugins.sparkpost.hooks.
suppress_email
(sender, view, request, opt_out, **kwargs)[source]
django_opt_out.plugins.sparkpost.signals module
django_opt_out.plugins.sparkpost.urls module
django_opt_out.plugins.sparkpost.views module
-
class
django_opt_out.plugins.sparkpost.views.
SparkPostUnsubscribeWebhook
(**kwargs)[source]
Bases: django.views.generic.base.View
-
dispatch
(*args, **kwargs)[source]
-
post
(request, *args, **kwargs)[source]
-
process_data
(data)[source]
Module contents
-
django_opt_out.plugins.sparkpost.
send_email
(subject, to, ctx, template_html, template_txt=None, **kwargs)[source]
Send rendered message with SparkPost unsubscribe support