From 427dd90c8897b96aaab92d2e706af76d438cbc11 Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Thu, 11 Mar 2021 15:10:11 -0500 Subject: [PATCH 1/2] Update transmissions.py Added the initial_open option to the model, and included it in the params documentation --- sparkpost/transmissions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sparkpost/transmissions.py b/sparkpost/transmissions.py index ef2e705..b3eaa6b 100644 --- a/sparkpost/transmissions.py +++ b/sparkpost/transmissions.py @@ -18,6 +18,7 @@ 'campaign': 'campaign_id', 'start_time': 'options/start_time', 'track_opens': 'options/open_tracking', + 'track_initial_opens': 'options/initial_open', 'track_clicks': 'options/click_tracking', 'transactional': 'options/transactional', 'use_sandbox': 'options/sandbox', @@ -264,6 +265,7 @@ def send(self, **kwargs): '2015-02-11T08:00:00-04:00'. :param bool track_opens: Defaults to True. Used to track opens of transmission + :param bool track_initial_opens: Used to track opens of transmission with top pixel :param bool track_clicks: Defaults to True. Used to track clicks of transmission :param bool use_sandbox: Flag must be set to use sandbox domain instead From 70e5ba6a030e74c6bf8054601c9b80121991c742 Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Thu, 11 Mar 2021 15:24:38 -0500 Subject: [PATCH 2/2] Update transmissions.py Addressed issue with line too long in comment --- sparkpost/transmissions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sparkpost/transmissions.py b/sparkpost/transmissions.py index b3eaa6b..1196c21 100644 --- a/sparkpost/transmissions.py +++ b/sparkpost/transmissions.py @@ -265,7 +265,8 @@ def send(self, **kwargs): '2015-02-11T08:00:00-04:00'. :param bool track_opens: Defaults to True. Used to track opens of transmission - :param bool track_initial_opens: Used to track opens of transmission with top pixel + :param bool track_initial_opens: Used to track opens of + transmission with top pixel :param bool track_clicks: Defaults to True. Used to track clicks of transmission :param bool use_sandbox: Flag must be set to use sandbox domain instead