nztim/mailchimp

Undefined method Member::merge()

Closed this issue · 0 comments

icweb commented

The following code

 $list = Mailchimp::getLists()[0];
$member = (new \NZTim\Mailchimp\Member('person@example.com'))->merge(['FNAME' => 'John'])->email_type('text')->confirm(false);
$results = Mailchimp::addUpdateMember($list['id'], $member);
dd($results);

Throws an exception:

Symfony\Component\Debug\Exception\FatalThrowableError
Call to undefined method NZTim\Mailchimp\Member::merge()