Skip to content

Commit 3af8945

Browse files
author
Eric Fialkowski
authored
Merge pull request #91 from customerio/eric/sdk_updates
New optional fields added to send message request
2 parents f050f5a + b0a6cc7 commit 3af8945

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [1.6.1]
4+
### Added
5+
- Added the `disable_css_preprocessing` and `language` optional fields to send request
6+
37
## [1.3.0]
48
### Added
59
- Support for merging duplicate customers using `merge_customers` function.

customerio/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (1, 6, 0, 'final', 0)
1+
VERSION = (1, 6, 1, 'final', 0)
22

33
def get_version():
44
version = '%s.%s' % (VERSION[0], VERSION[1])

customerio/api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def __init__(self,
5151
queue_draft=None,
5252
message_data=None,
5353
attachments=None,
54+
disable_css_preproceessing=None,
55+
send_at=None,
56+
language=None,
5457
):
5558

5659
self.transactional_message_id = transactional_message_id
@@ -72,6 +75,9 @@ def __init__(self,
7275
self.queue_draft = queue_draft
7376
self.message_data = message_data
7477
self.attachments = attachments
78+
self.disable_css_preproceessing = disable_css_preproceessing
79+
self.send_at = send_at
80+
self.language = language
7581

7682
def attach(self, name, content, encode=True):
7783
'''Helper method to add base64 encode the attachments'''
@@ -114,6 +120,9 @@ def _to_dict(self):
114120
queue_draft="queue_draft",
115121
message_data="message_data",
116122
attachments="attachments",
123+
disable_css_preproceessing="disable_css_preproceessing",
124+
send_at="send_at",
125+
language="language",
117126
)
118127

119128
data = {}

0 commit comments

Comments
 (0)