Skip to content

Instantly share code, notes, and snippets.

@shubs
Forked from arnaudbreton/managecontactslists.sh
Created July 29, 2015 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shubs/c5b8dafea8eb008c7098 to your computer and use it in GitHub Desktop.
Save shubs/c5b8dafea8eb008c7098 to your computer and use it in GitHub Desktop.
Manage a contact list subscription
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