-
-
Save arnaudbreton/e127b640b6cc6039ea33 to your computer and use it in GitHub Desktop.
Manage a contact list subscription
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \ | |
https://api.mailjet.com/v3/REST/contact/$ID/managecontactslists \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"ContactsLists":[ | |
{ | |
"ListID”: list_id, | |
"Action": "addnoforce" | |
}, | |
{ | |
"ListID": another_list_id, | |
"Action": "addnoforce" | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment