You are here

public function MailchimpLists::getMemberActivity in Mailchimp 8

Gets activity related to 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.

Return value

object

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/lists/m...

File

lib/mailchimp-api-php/src/MailchimpLists.php, line 226

Class

MailchimpLists
Mailchimp Lists/Audiences library.

Namespace

Mailchimp

Code

public function getMemberActivity($list_id, $email, $parameters = []) {
  $tokens = [
    'list_id' => $list_id,
    'subscriber_hash' => md5(strtolower($email)),
  ];
  return $this
    ->request('GET', '/lists/{list_id}/members/{subscriber_hash}/activity', $tokens, $parameters);
}