PHP code example of brabia / mailchimp-api
1. Go to this page and download the library: Download brabia/mailchimp-api 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/ */
brabia / mailchimp-api example snippets
$mailChimp = new MailChimp(array(
'apiKey' => 'apiKey'
));
$mailChimp->getUserDetails(array(
'user' => '[email protected]', // user email
'listId' => 'listId' // Your MailChimp listId
));