1. Go to this page and download the library: Download amosoft/mailjet-apiv3-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amosoft / mailjet-apiv3-php example snippets
bash
composer
php
ljet\Resources;
// use your saved credentials
$mj = new \Mailjet\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'));
// Resources are all located in the Resources class
$response = $mj->get(Resources::$Contact);
/*
Read the response
*/
if ($response->success())
var_dump($response->getData());
else
var_dump($response->getStatus());