From 2c0fc5b8f7cd3dec0d2102e04ab286019e445833 Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Fri, 9 Apr 2021 18:14:38 -0400 Subject: [PATCH 1/5] Update transmissions.py Add support for AMP HTML --- sparkpost/transmissions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sparkpost/transmissions.py b/sparkpost/transmissions.py index a3f292c..934c2ec 100644 --- a/sparkpost/transmissions.py +++ b/sparkpost/transmissions.py @@ -32,6 +32,7 @@ 'subject': 'content/subject', 'from_email': 'content/from', 'html': 'content/html', + 'amp_html': 'content/amp_html', 'text': 'content/text', 'template': 'content/template_id', 'attachments': 'content/attachments', @@ -201,6 +202,7 @@ def send(self, **kwargs): :param bool use_draft_template: Defaults to False. Set to true if you want to send a template that is a draft :param str html: HTML part of transmission + :param str amp_html: AMP HTML part of the transmission :param str text: Text part of transmission :param str subject: Subject of transmission :param str from_email: Email that the transmission comes from. The From 31e88ee1673ad7ccee4b78360ce88fec5514cd6e Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Fri, 9 Apr 2021 18:20:12 -0400 Subject: [PATCH 2/5] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a8e04f..38b4469 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased - [Compare to latest release][unreleased] +## [1.3.8] - 2021-04-09 +- [#213](https://github.com/SparkPost/python-sparkpost/pull/213) Support for AMP HTML for transmissions + ## [1.3.7] - 2021-03-24 - [#211](https://github.com/SparkPost/python-sparkpost/pull/211) Support for top open pixel for transmissions From 0eeb3a12270e51854086621155102231ce001fbc Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Fri, 9 Apr 2021 18:21:00 -0400 Subject: [PATCH 3/5] Update __init__.py --- sparkpost/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkpost/__init__.py b/sparkpost/__init__.py index 9cd1f24..8c29f4e 100644 --- a/sparkpost/__init__.py +++ b/sparkpost/__init__.py @@ -9,7 +9,7 @@ from .transmissions import Transmissions -__version__ = '1.3.7' +__version__ = '1.3.8' EU_API = 'api.eu.sparkpost.com' US_API = 'api.sparkpost.com' From 24a3c19a654764db3a7172498b8d9bdc130628f1 Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Fri, 9 Apr 2021 18:21:30 -0400 Subject: [PATCH 4/5] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3b1d209..ef32612 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='sparkpost', - version='1.3.7', + version='1.3.8', author='SparkPost', author_email='developers@sparkpost.com', packages=find_packages(), From 7492f548ff26d637b473c8ec7a63c5a59fc6bf2b Mon Sep 17 00:00:00 2001 From: Darren Smith Date: Fri, 9 Apr 2021 18:29:06 -0400 Subject: [PATCH 5/5] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38b4469..b1d34ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - [Compare to latest release][unreleased] ## [1.3.8] - 2021-04-09 -- [#213](https://github.com/SparkPost/python-sparkpost/pull/213) Support for AMP HTML for transmissions +- [#214](https://github.com/SparkPost/python-sparkpost/pull/214) Support for AMP HTML for transmissions ## [1.3.7] - 2021-03-24 - [#211](https://github.com/SparkPost/python-sparkpost/pull/211) Support for top open pixel for transmissions