mémo API mailjet

1/ créer une liste //////////////////////////////////////////////////////////////////////////////////////
];
$response = $mj->post(Resources::$Contactslist, [‘body’ => $body]);
$response->success() && var_dump($response->getData());
?>

2/ ajouter un contact //////////////////////////////////////////////////////////////////////////////////////
];
$response = $mj->post(Resources::$Contact, [‘body’ => $body]);
$response->success() && var_dump($response->getData());
?>

3/ abonner un contact à une liste ////////////////////////////////////////////////////////////////////////////
[
‘ListID’ => « $ListID_1 »,
‘Action’ => « addnoforce »
],
[
‘ListID’ => « $ListID_2 »,
‘Action’ => « addforce »
]
]
];
$response = $mj->post(Resources::$ContactManagecontactslists, [‘id’ => $id, ‘body’ => $body]);
$response->success() && var_dump($response->getData());
?>

4/ …