Skip to content

Commit 19a7708

Browse files
committed
Version 9.1.2
1 parent fb0a64c commit 19a7708

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/createsend/subscriber.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def add(self, list_id, email_address, name, custom_fields, resubscribe, consent_
3535

3636
if mobile_number:
3737
body["MobileNumber"] = mobile_number
38+
validate_consent_to_track(consent_to_track_sms)
3839
body["ConsentToSendSms"] = consent_to_track_sms
3940

4041
response = self._post("/subscribers/%s.json" %
@@ -56,6 +57,7 @@ def update(self, new_email_address, name, custom_fields, resubscribe, consent_to
5657

5758
if mobile_number:
5859
body["MobileNumber"] = mobile_number
60+
validate_consent_to_track(consent_to_track_sms)
5961
body["ConsentToSendSms"] = consent_to_track_sms
6062

6163
response = self._put("/subscribers/%s.json" % self.list_id,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="createsend",
5-
version='9.0.2',
5+
version='9.1.2',
66
description="A library which implements the complete functionality of the Campaign Monitor API.",
77
author='Campaign Monitor',
88
author_email='support@campaignmonitor.com',

0 commit comments

Comments
 (0)