You are here

public function MailchimpLists::getMemberInfo in Mailchimp 8

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

@inheritdoc

Overrides MailchimpLists::getMemberInfo

File

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

Class

MailchimpLists
Mailchimp Lists library test cases.

Namespace

Mailchimp\Tests

Code

public function getMemberInfo($list_id, $email, $parameters = []) {
  parent::getMemberInfo($list_id, $email, $parameters);
  $response = (object) [
    'id' => md5(strtolower($email)),
    'email_address' => $email,
    'status' => 'subscribed',
  ];
  return $response;
}