For more details about API v3, please visit our help section at https://github.com/mailium/api-wrapper-php
Simply add the package to your composer.json
file and run composer update
.
"mailium/php-api-wrapper": "dev-master"
Or go to your project directory where the composer.json
file is located and type:
composer require "mailium/php-api-wrapper"
Either ACCESS_TOKEN or API_KEY must be set.
$mailiumApi = new Mailium\API\MailiumAPI3('ACCESS_TOKEN', 'YOUR_API3_KEY', 'SUBDOMAIN', 'json');
$mailiumApi->run('List.GetList',array());
print_r($mailiumApi->Result);