You are here

public function MailchimpLists::updateMember in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::updateMember()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::updateMember()

@inheritdoc

Overrides MailchimpLists::updateMember

File

lib/mailchimp-api-php/tests/src/MailchimpLists.php, line 178

Class

MailchimpLists
Mailchimp Lists library test cases.

Namespace

Mailchimp\Tests

Code

public function updateMember($list_id, $email, $parameters = [], $batch = FALSE) {
  parent::updateMember($list_id, $email, $parameters, $batch);
  $response = (object) [
    'id' => md5(strtolower($email)),
    'email_address' => $email,
  ];
  foreach ($parameters as $key => $value) {
    $response->{$key} = $value;
  }
  return $response;
}