python-amcards 1.7.2__tar.gz → 1.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_amcards-1.7.2 → python_amcards-1.7.4}/PKG-INFO +1 -1
- {python_amcards-1.7.2 → python_amcards-1.7.4}/amcards/amcards.py +5 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/python_amcards.egg-info/PKG-INFO +1 -1
- {python_amcards-1.7.2 → python_amcards-1.7.4}/setup.py +1 -1
- {python_amcards-1.7.2 → python_amcards-1.7.4}/LICENSE +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/README.rst +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/amcards/__helpers.py +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/amcards/__init__.py +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/amcards/exceptions.py +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/amcards/models.py +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/python_amcards.egg-info/SOURCES.txt +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/python_amcards.egg-info/dependency_links.txt +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/python_amcards.egg-info/requires.txt +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/python_amcards.egg-info/top_level.txt +0 -0
- {python_amcards-1.7.2 → python_amcards-1.7.4}/setup.cfg +0 -0
|
@@ -902,6 +902,7 @@ class AMcardsClient:
|
|
|
902
902
|
return_address: dict = None,
|
|
903
903
|
send_date: str = None,
|
|
904
904
|
extra_data: dict = None,
|
|
905
|
+
bypass_duplicate_check: bool = False,
|
|
905
906
|
) -> CampaignResponse:
|
|
906
907
|
"""Attempt to send a drip campaign.
|
|
907
908
|
|
|
@@ -978,6 +979,7 @@ class AMcardsClient:
|
|
|
978
979
|
'carMake': 'Honda', # OPTIONAL
|
|
979
980
|
}
|
|
980
981
|
|
|
982
|
+
:param bool bypass_duplicate_check: When ``True``, instruct AMcards to bypass duplicate detection for the campaign send; defaults to ``False``.
|
|
981
983
|
:return: AMcards' :py:class:`response <amcards.models.CampaignResponse>` for sending a single drip campaign.
|
|
982
984
|
:rtype: :py:class:`CampaignResponse <amcards.models.CampaignResponse>`
|
|
983
985
|
|
|
@@ -1039,6 +1041,9 @@ class AMcardsClient:
|
|
|
1039
1041
|
if extra_data is not None:
|
|
1040
1042
|
body |= {'extra_data': extra_data}
|
|
1041
1043
|
|
|
1044
|
+
if bypass_duplicate_check:
|
|
1045
|
+
body |= {'bypass_duplicate_check': True}
|
|
1046
|
+
|
|
1042
1047
|
res = requests.post(f'{DOMAIN}/campaigns/open-campaign-form/', json=body, headers=self._HEADERS)
|
|
1043
1048
|
|
|
1044
1049
|
# Check for errors
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|