Releases: thinkshout/mailchimp-api-php
v3.0.0-rc2
What's Changed
- PHP 8.1 fixes and add a helper method for checking authentication by @aprice42 in #110
- Remove API playground; no longer supported by MailChimp. by @ruscoe in #106
- Adds and updates changes from #105 by @aprice42 and @calebtr-metro in #111
Full Changelog: v3.0.0-rc1...v3.0.0-rc2
v3.0.0-rc1
This release candidate updates the library architecture to allow support for both API key-based authentication (existing) and OAuth authentication (new)
- Now to instantiate a Mailchimp connection you need to instantiate a MailchimpApiInterface and a MailchimpApiIUser with something like the following:
// Instantiate MailchimpApiInterface
$authentication_settings = [
'access_token' => $this->stateService->get('mailchimp_access_token'),
'data_center' => $this->stateService->get('mailchimp_data_center'),
'api_user' => 'oauth',
];
// Use Mailchimp2 for OAuth and Mailchimp for api_key.
$api_class = new Mailchimp2($authentication_settings);
$http_options = [
'timeout' => $this->config->get('api_timeout'),
'headers' => [
'User-Agent' => _mailchimp_get_user_agent(),
],
];
// Instantiate a MailchimpApiUser or a class that extends it (ie. MailchimpLists, MailchimpSignups, etc..)
$mailchip_object = new MailchimpApiUser($api_class, $http_options);v2.1.3
Fixes a bug caused by missing test classes. See https://www.drupal.org/project/mailchimp/issues/3254786
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
Adds product URLs to support product recommendations.
POTENTIALLY BREAKING CHANGE
The addProduct() signature contains a new parameter: $url. This may affect you if you have custom code using this method.
WAS: addProduct($store_id, $id, $title, $variants = [], $parameters = [])
NOW: addProduct($store_id, $product_id, $title, $url, $variants = [], $parameters = [])
v2.0.0-package.zip contains the library and dependencies normally installed via Composer.
v1.0.10
Allows optional parameters to be sent to MailChimp when adding a store.
POTENTIALLY BREAKING CHANGE
The addStore() signature parameter order has changed. This may affect you if you have custom code using this method.
WAS: addStore($id, $store, $batch = FALSE)
NOW: addStore($id, $store, $parameters = [], $batch = FALSE)
This is for consistency with other method signatures.
v1.0.10-package.zip contains the library and dependencies normally installed via Composer.
v1.0.9
Add support for MailChimp Connected Sites.
v1.0.9-package.zip contains the library and dependencies normally installed via Composer.