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
......@@ -76,6 +76,7 @@ def subscribe_to_ecomail_newsletter(
source: str,
list_id: int | None = None,
custom_data: dict | None = None,
update_existing: bool = True
):
if custom_data is None:
custom_data = {}
......@@ -91,7 +92,8 @@ def subscribe_to_ecomail_newsletter(
"source": source,
"tags": split_categories,
**custom_data,
}
},
"update_existing": update_existing,
}
response = requests.post(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment