PHP code example of otis22 / transactional
1. Go to this page and download the library: Download otis22/transactional 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/ */
otis22 / transactional example snippets
$mailchimp = new MailchimpTransactional\ApiClient();
$mailchimp->setApiKey('YOUR_API_KEY');
$response = $mailchimp->users->ping();
print_r($response);
$mailchimp->templates->publish([ 'name' => 'My Template']);
$mailchimp->setDefaultOutputFormat('xml');
$mailchimp->senders->list([ 'outputFormat' => 'php']);
git clone [email protected]:mailchimp/mailchimp-transactional-php.git