public function MailChimp_ListsTest::segments in Mailchimp 7.3
See also
Mailchimp_Lists::segments()
File
- tests/
mailchimp_lists_test.inc, line 77 - A virtual MailChimp Lists API implementation for use in testing.
Class
Code
public function segments($id, $type = null) {
$lists = $this
->loadLists();
$response = array(
'static' => array(),
'saved' => array(),
);
if (isset($lists[$id])) {
$response['static'] = $lists[$id]['segments'];
$response['saved'] = $lists[$id]['segments'];
}
return $response;
}