PHP code example of rapidwebltd / simplemailchimp

1. Go to this page and download the library: Download rapidwebltd/simplemailchimp 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/ */

    

rapidwebltd / simplemailchimp example snippets


$simpleMailChimp = SimpleMailChimpFactory::getByAPIKey('API_KEY_GOES_HERE');

$simpleMailChimp->subscribe('LIST_ID_GOES_HERE', '[email protected]');

$simpleMailChimp->unsubscribe('LIST_ID_GOES_HERE', '[email protected]');

$simpleMailChimp->getSubscriberDetails('LIST_ID_GOES_HERE', '[email protected]');

$simpleMailChimp->isSubscribedToList('LIST_ID_GOES_HERE', '[email protected]');

$simpleMailChimp->getAllUsersInList('LIST_ID_GOES_HERE');

$simpleMailChimp->getAllUsersInList('LIST_ID_GOES_HERE','email_address,status');