public function MailchimpLists::updateMember in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::updateMember()
- 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\TestsCode
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;
}