public function MailChimp_ListsTest::getList in Mailchimp 7.3
See also
Mailchimp_Lists::getList()
File
- tests/
mailchimp_lists_test.inc, line 335 - A virtual MailChimp Lists API implementation for use in testing.
Class
Code
public function getList($filters = array(), $start = 0, $limit = 25, $sort_field = 'created', $sort_dir = 'DESC') {
$lists = $this
->loadLists();
$response = array(
'data' => array(),
'total' => 0,
);
foreach ($lists as $list_id => $list_data) {
$list_data['id'] = $list_id;
$response['data'][] = $list_data;
$response['total']++;
}
return $response;
}