Mailjet-API
A simple PHP library for the Mailjet API v1., (*1)
, (*2)
Dependencies
Note: There is also a version available for the Zend Framework 1., (*3)
Installation
The recommended way is through Composer., (*4)
composer require narno/mailjet-api
Usage
<?php
use Narno\Mailjet\Api as MailjetApi;
try {
$api = New MailjetApi('key', 'secret_key');
// fetches user's infos...
$userInfos = $api->user->infos();
if ($userInfos->status == 'OK') {
// ...and displays
print_r($userInfos->infos);
}
} catch (Exception $e) {
echo $e->getMessage();
}
Mailjet API documentation: http://www.mailjet.com/docs/api., (*5)
License
Free software distributed under the terms of the MIT license., (*6)
© Arnaud Ligny, (*7)