Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from machtfit/add-api-email-unsubscribe
Browse files Browse the repository at this point in the history
Add api Unsubscribing from an Email Campaign
  • Loading branch information
klausbreuer authored Jan 26, 2018
2 parents d477d6f + c61b269 commit 05c8b4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions django_emarsys/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ def chunked(it, n):
return total_updated, total_created, missing_contacts, failed_contacts


def unsubscribe_from_campaign(launch_list_id, email_id, contact_uid):
Client().call('/api/v2/email/unsubscribe', 'POST',
{'launch_list_id': int(launch_list_id),
'email_id': int(email_id),
'contact_uid': contact_uid})


# Lists
# =====

Expand Down

0 comments on commit 05c8b4c

Please sign in to comment.