1. Go to this page and download the library: Download mailchimp/marketing-sdk 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/ */
mailchimp / marketing-sdk example snippets
namespace Example;
use Mailchimp\MailchimpClient;
use Mailchimp\AccountExports\Requests\CreateAccountExportsRequest;
use Mailchimp\AccountExports\Types\CreateAccountExportsRequestIncludeStagesItem;
$client = new MailchimpClient(
token: '<token>',
);
$client->accountExports->create(
new CreateAccountExportsRequest([
'
The SDK defaults to the `Default_` environment. To use a different environment, pass it to the client constructor: