Skip to content

Instantly share code, notes, and snippets.

Avatar

Arnaud Breton arnaudbreton

View GitHub Profile
@arnaudbreton
arnaudbreton / getlists.sh
Last active Aug 29, 2015 — forked from shubs/getlists.sh
Checking which lists a contact is subscribed to
View getlists.sh
curl -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
"https://api.mailjet.com/v3/REST/contact?contactslist=$ID&limit=-1"
@arnaudbreton
arnaudbreton / managecontactslists.sh
Last active Aug 29, 2015 — forked from shubs/managecontactslists.sh
Manage a contact list subscription
View managecontactslists.sh
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"
},
@arnaudbreton
arnaudbreton / jobIDget.sh
Last active Aug 29, 2015 — forked from shubs/jobIDget.sh
Checking the status of a multiple upload
View jobIDget.sh
curl -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contact/managemanycontacts/JobID
@arnaudbreton
arnaudbreton / getcontactslists.sh
Last active Aug 29, 2015 — forked from shubs/getcontactslists.sh
Checking a Contact's list subscriptions
View getcontactslists.sh
curl -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contact/$ID/getcontactslists
@arnaudbreton
arnaudbreton / managemanycontacts.sh
Last active Aug 29, 2015 — forked from swooop/managemanycontacts.sh
Adding multiple contacts to a list
View managemanycontacts.sh
curl -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contactslist/$ID/managemanycontacts \
-H "Content-Type: application/json" \
-d '{
"Action": "addnoforce",
"Contacts": [
{
"Email": "jimsmith@example.com",
"Name": "Jim",
@arnaudbreton
arnaudbreton / getlists.sh
Created Jul 22, 2015 — forked from swooop/getlists.sh
Checking which lists a contact is subscribed to
View getlists.sh
curl -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE"
https://api.mailjet.com/v3/REST/contact?contactslist=$ID&limit=-1
@arnaudbreton
arnaudbreton / managecontact.sh
Last active Aug 29, 2015 — forked from swooop/managecontact.sh
Adding a contact to a list
View managecontact.sh
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",
@arnaudbreton
arnaudbreton / getcontactslists.sh
Created Jul 22, 2015 — forked from swooop/getcontactslists.sh
Checking a Contact's list subscriptions
View getcontactslists.sh
curl -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE"
https://api.mailjet.com/v3/REST/contact/$ID/getcontactslists
@arnaudbreton
arnaudbreton / jobIDget.sh
Last active Aug 29, 2015 — forked from swooop/jobIDget.sh
Checking the status of a multiple upload
View jobIDget.sh
curl -X GET /
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" /
https://api.mailjet.com/v3/REST/contact/managemanycontacts/JobID
@arnaudbreton
arnaudbreton / managemany.json
Created Jul 22, 2015 — forked from swooop/managemany.sh
A response from a managemanycontacts call
View managemany.json
{
"Count": 1,
"Data": [
{
"JobID": 35800
}
],
"Total": 1
}
You can’t perform that action at this time.