Releases: campaignmonitor/createsend-python
Releases · campaignmonitor/createsend-python
Version 4.2.7
- Removes test dependencies from install package. (#53)
- Build and upload universal wheels alongside source dists.
Version 4.2.2
- Fix bug where the six module was not set as a installation dependency.
- Remove relative imports.
- Improve Python 3 support.
- Use PEP 8 formatting.
- See #43 for details.
Published at https://pypi.python.org/pypi/createsend/4.2.2.
Version 4.2.1
- Decode JSON API responses using UTF-8: (#38)
Version 4.2.0
Version 4.1.1
- Fixed the
MANIFEST
file so that it includes new Transactional files (#25).
Version 4.1.0
Added support for Transactional Email
Version 4.0.0
- Removed
CreateSend.apikey
to promote using OAuth rather than basic auth with an API key. - Started using the
https://api.createsend.com/api/v3.1/
API endpoint. - Added support for new segments structure.
-
Segments now includes a new
RuleGroups
member, instead of aRules
member.So for example, when you previously would have created a segment like so:
segment.create(list.ListID, 'Python API Segment', [ { "Subject": "EmailAddress", "Clauses": ["CONTAINS pyapi.com"] } ])
You would now do this:
segment.create(list.ListID, 'Python API Segment', [ { "Rules": [ { "RuleType": "EmailAddress", "Clause": "CONTAINS pyapi.com" } ] } ])
-
The Add Rule call is now Add Rule Group, taking a
rulegroup
argument instead of asubject
&clauses
argument.Segment.add_rulegroup(self, rulegroup):
So for example, when you previously would have added a rule like so:
segment.add_rule( "EmailAddress", ["CONTAINS pyapi.com"] )
You would now do this:
segment.add_rulegroup( { "Rules": [ { "RuleType": "EmailAddress", "Clause": "CONTAINS pyapi.com" } ] } )
-
Version 3.4.0
-
Modified several methods so that unnecessary arguments are no longer needed.
The following methods were updated:
Administrator.get()
Person.get()
Subscriber.get()
As an example using, previously you would write:
subscriber = Subscriber(auth, 'listid', 'me@test.com').get('listid', 'me@test.com')
Now you can write:
subscriber = Subscriber(auth, 'listid', 'me@test.com').get()
Version 3.3.0
- Added support for validating SSL certificates to avoid man-in-the-middle attacks.