Skip to content

Releases: thinkshout/mailchimp-api-php

v3.0.0-rc2

22 Feb 06:05
250e74a

Choose a tag to compare

What's Changed

Full Changelog: v3.0.0-rc1...v3.0.0-rc2

v3.0.0-rc1

10 Feb 19:33
31ba958

Choose a tag to compare

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

29 Dec 20:00

Choose a tag to compare

Fixes a bug caused by missing test classes. See https://www.drupal.org/project/mailchimp/issues/3254786

v2.1.2

18 Nov 19:52
ed0e822

Choose a tag to compare

Add Licensing.

v2.1.1

05 Aug 16:46
eae0e46

Choose a tag to compare

Initial fix for PHP 8.

v2.1.0

27 Apr 19:30

Choose a tag to compare

Removing release version from composer.json so new release shows up in packagist automatically.

v2.0.1

27 Apr 19:18
a5ef09f

Choose a tag to compare

  • Adds Support for Interest Categories, Promo Codes, Member Tags, and Member Events.
  • Allows for a proxy option during api calls
  • Updates code comment branching from MailChimp to Mailchimp
  • Small bug fixes and phpcs updates.

v2.0.0

27 Feb 17:55

Choose a tag to compare

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

27 Dec 21:16

Choose a tag to compare

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

20 Nov 20:30

Choose a tag to compare

Add support for MailChimp Connected Sites.

v1.0.9-package.zip contains the library and dependencies normally installed via Composer.