From 51a23b72142eca7cc37a299792cc90aad4b3e786 Mon Sep 17 00:00:00 2001 From: David Szlovak Date: Tue, 15 Mar 2022 12:58:13 +0100 Subject: [PATCH] Support send_at parameter for transactional emails --- customerio/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customerio/api.py b/customerio/api.py index 3514335..d7d0ff4 100644 --- a/customerio/api.py +++ b/customerio/api.py @@ -47,6 +47,7 @@ def __init__(self, queue_draft=None, message_data=None, attachments=None, + send_at=None, ): self.transactional_message_id = transactional_message_id @@ -68,6 +69,7 @@ def __init__(self, self.queue_draft = queue_draft self.message_data = message_data self.attachments = attachments + self.send_at = send_at def attach(self, name, content, encode=True): '''Helper method to add base64 encode the attachments''' @@ -110,6 +112,7 @@ def _to_dict(self): queue_draft="queue_draft", message_data="message_data", attachments="attachments", + send_at="send_at", ) data = {}