Skip to content
Snippets Groups Projects
Commit 6164c134 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

Automatically update existing subscribers in ecomail API

parent 09bfbe56
No related branches found
No related tags found
2 merge requests!1287Release,!1286Relase
Pipeline #20862 passed
This commit is part of merge request !1287. Comments created here will be created in the context of that merge request.
...@@ -76,6 +76,7 @@ def subscribe_to_ecomail_newsletter( ...@@ -76,6 +76,7 @@ def subscribe_to_ecomail_newsletter(
source: str, source: str,
list_id: int | None = None, list_id: int | None = None,
custom_data: dict | None = None, custom_data: dict | None = None,
update_existing: bool = True
): ):
if custom_data is None: if custom_data is None:
custom_data = {} custom_data = {}
...@@ -91,7 +92,8 @@ def subscribe_to_ecomail_newsletter( ...@@ -91,7 +92,8 @@ def subscribe_to_ecomail_newsletter(
"source": source, "source": source,
"tags": split_categories, "tags": split_categories,
**custom_data, **custom_data,
} },
"update_existing": update_existing,
} }
response = requests.post( response = requests.post(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment