Skip to content

Instantly share code, notes, and snippets.

@swooop
Created May 27, 2015 13:04
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 swooop/421eba5dec9e740ea20d to your computer and use it in GitHub Desktop.
Save swooop/421eba5dec9e740ea20d to your computer and use it in GitHub Desktop.
Adding a contact to a list
curl -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contactslist/$ID/managecontact \
-H "Content-Type: application/json" \
-d '{"Email": "email@example.com", "Name":"Contact", "Action":"addnoforce", "Properties":{"property1":"value", "propertyN":"value"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment