Skip to content

Instantly share code, notes, and snippets.

@swooop
Created May 27, 2015 12:51
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/e98d07b731207697a69b to your computer and use it in GitHub Desktop.
Save swooop/e98d07b731207697a69b to your computer and use it in GitHub Desktop.
Managing and uploading many contacts
curl -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contact/managemanycontacts -H "Content-Type: application/json" \
-d "{ 'ContactLists':[{'ListID' : 1, 'Action' : 'addnoforce'}, {'ListID' : 2, 'Action': 'addnoforce'}], 'Contacts':[{'Email':'jimsmith@example.com', 'Name':'Jim', 'Properties':{'Property1':value, 'Property2':value2}}, {'Email':'janetdoe@example.com', 'Name':'Janet', 'Properties': {'Property1': value, 'Property2': value2}}]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment