Email Lists

Retrieve an Email List

use MonkeyPod\Api\Resources\EmailList;

$list = new EmailList($id);
$list->retrieve();

Retrieve an Email List by Name

use MonkeyPod\Api\Resources\EmailList;

$list = new EmailList();
$list->retrieveByName("Newsletter");

Retrieve a Collection of All Your Email Lists

use MonkeyPod\Api\Resources\EmailListCollection;

$collection = new EmailListCollection();
$collection->retrieve();

foreach ($collection as $emailList) {
    assert($emailList instanceof MonkeyPod\Api\Resources\EmailList::class);
}