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()
Updates a member of a Mailchimp list.
Parameters
string $list_id: The ID of the list.
string $email: The member's email address.
array $parameters: Associative array of optional request parameters.
bool $batch: TRUE to create a new pending batch operation.
Return value
object
See also
http://developer.mailchimp.com/documentation/mailchimp/reference/lists/m...
1 call to MailchimpLists::updateMember()
- MailchimpLists::updateMember in lib/
mailchimp-api-php/ tests/ src/ MailchimpLists.php - @inheritdoc
1 method overrides MailchimpLists::updateMember()
- MailchimpLists::updateMember in lib/
mailchimp-api-php/ tests/ src/ MailchimpLists.php - @inheritdoc
File
- lib/
mailchimp-api-php/ src/ MailchimpLists.php, line 300
Class
- MailchimpLists
- Mailchimp Lists/Audiences library.
Namespace
MailchimpCode
public function updateMember($list_id, $email, $parameters = [], $batch = FALSE) {
$tokens = [
'list_id' => $list_id,
'subscriber_hash' => md5(strtolower($email)),
];
return $this
->request('PATCH', '/lists/{list_id}/members/{subscriber_hash}', $tokens, $parameters, $batch);
}