A PHP library for working w/ the Mailjet API.
Normal install via Composer.
Call the run
method:
use Travis\Mailjet;
$apikey_public = 'your-api-key-public';
$apikey_secret = 'your-api-key-secret';
$list_id = 'your-contact-list-id';
// add new subscriber
$test = Mailjet::run($apikey_public, $apikey_secret, 'contactslist/'.$list_id.'/managecontact', 'post', [
'name' => 'Jack Bauer',
'email' => 'jbauer@foobar.net',
'action' => 'addforce',
]);