Python SDK
Broadcast
Method to trigger broadcast on lists using python SDK
Pre-requisites
Trigger Broadcast
You can trigger broadcast using supr_client.subscriber_lists.broadcast()
method.
Broadcast body field description:
Parameter | Description | |
---|---|---|
list_id | list of users that you want to send broadcast messages to. | |
template | Add template slug here. You can get this slug by clicking on the clipboard icon next to the Template name on SuprSend templates page. It is the same for all channels | |
notification_category | Preference Category to apply user preference settings while sending. Root categories - system / transactional / promotional | |
data | variable data defined in templates or workflow | |
channels | Specify channels if you don’t want to send notification of all live channels in the template. Available channel keys - email, sms, whatsapp, androidpush, iospush, ms_teams, slack, webpush | |
delay | Broadcast will be halted for the time mentioned in delay, and become active once the delay period is over. Example: 1d2h3m4s / 60 | |
trigger_at | Trigger broadcast on a specific date-time. Pass in ISO 8601 timestamp (eg. “2021-08-27T20:14:51.643Z”) |