public function MailchimpLists::getMembers in Mailchimp 8
Gets information about all members of a Mailchimp list.
Parameters
string $list_id: The ID of the list.
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 155
Class
- MailchimpLists
- Mailchimp Lists/Audiences library.
Namespace
MailchimpCode
public function getMembers($list_id, $parameters = []) {
$tokens = [
'list_id' => $list_id,
];
return $this
->request('GET', '/lists/{list_id}/members', $tokens, $parameters);
}