public function getMembers($listId)
    {
        $emails = [];
        $result = $this->mailchimp->get("lists/$listId/members");

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }

        return $result;
    }
public function getMembers($listId)
    {
        $emails = [];
        $result = $this->mailchimp->get("lists/$listId/members");

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }

        return $result;
    }
public function getMembers ( $ listId ) { $ emails = [ ] ; $ result = $ this -> mailchimp -> get ( "lists/$listId/members" ) ; if ( ! $ this -> mailchimp -> success ( ) ) { $ this -> throwMailchimpError ( $ this -> mailchimp -> getLastResponse ( ) ) ; } return $ result ; }
Get Members of a list
@param string $listId
@return array
Get Members of a list