election_day.views.subscription
Functions
|
Initiate the email notification subscription. |
|
Confirm the email used for the subscription. |
|
Initiates the email notification unsubscription. |
|
Deactivates the email subscription. |
|
Adds the given phone number to the SMS subscribers. |
|
Removes the given phone number from the SMS subscribers. |
Module Contents
- election_day.views.subscription.subscribe_email(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmailSubscriptionForm) onegov.core.types.RenderData [source]
Initiate the email notification subscription.
- election_day.views.subscription.optin_email(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmailSubscriptionForm) onegov.core.types.RenderData [source]
Confirm the email used for the subscription.
- election_day.views.subscription.unsubscribe_email(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmailSubscriptionForm) onegov.core.types.RenderData [source]
Initiates the email notification unsubscription.
- election_day.views.subscription.optout_email(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmailSubscriptionForm) RenderData | Response [source]
Deactivates the email subscription.
- Allows one-click unsubscription as defined by RFC-8058:
curl -X POST http://localhost:8080/xx/zg/unsubscribe-email?opaque=yy