PHP code example of aaronsaray / madmimi-api-php
1. Go to this page and download the library: Download aaronsaray/madmimi-api-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/ */
aaronsaray / madmimi-api-php example snippets
use MadMimi\Connection;
use MadMimi\CurlRequest;
use MadMimi\Options\Mail\Transactional;
$connection = new Connection('[email protected]', 'your-api-key', new CurlRequest());
$options = new Transactional();
$options->setPromotionName('Meaning of Life')
->setPlaceholderValues(['answer'=>'42'])
->setTo('[email protected]', 'Slartibartfast');
$transactionId = $connection->request($options);
bash
$ composer