public function get($filters = array(), $start = 0, $limit = 25, $sort_field = 'create_time', $sort_dir = "DESC") {
        if (!in_array(strtolower($sort_field), array("create_time", "send_time", "title", "subject")))
            throw new \Exception('sort_field  has to be one of "create_time", "send_time", "title", "subject" ');
        if (!in_array(strtoupper($sort_dir), array("ASC", "DESC")))
            throw new \Exception('sort_dir  has to be one of "ASC", "DESC" ');
        $payload = array(
            'filters' => $filters,
            'start' => $start,
            'limit' => $limit,
            'sort_field' => $sort_field,
            'sort_dir' => $sort_dir
        );
        $apiCall = 'campaigns/list';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function get($filters = array(), $start = 0, $limit = 25, $sort_field = 'create_time', $sort_dir = "DESC") {
        if (!in_array(strtolower($sort_field), array("create_time", "send_time", "title", "subject")))
            throw new \Exception('sort_field  has to be one of "create_time", "send_time", "title", "subject" ');
        if (!in_array(strtoupper($sort_dir), array("ASC", "DESC")))
            throw new \Exception('sort_dir  has to be one of "ASC", "DESC" ');
        $payload = array(
            'filters' => $filters,
            'start' => $start,
            'limit' => $limit,
            'sort_field' => $sort_field,
            'sort_dir' => $sort_dir
        );
        $apiCall = 'campaigns/list';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data) ? $data : false;
    }
public function get ( $ filters = array ( ) , $ start = 0 , $ limit = 25 , $ sort_field = 'create_time' , $ sort_dir = "DESC" ) { if ( ! in_array ( strtolower ( $ sort_field ) , array ( "create_time" , "send_time" , "title" , "subject" ) ) ) throw new \ Exception ( 'sort_field  has to be one of "create_time", "send_time", "title", "subject" ' ) ; if ( ! in_array ( strtoupper ( $ sort_dir ) , array ( "ASC" , "DESC" ) ) ) throw new \ Exception ( 'sort_dir  has to be one of "ASC", "DESC" ' ) ; $ payload = array ( 'filters' => $ filters , 'start' => $ start , 'limit' => $ limit , 'sort_field' => $ sort_field , 'sort_dir' => $ sort_dir ) ; $ apiCall = 'campaigns/list' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return isset ( $ data ) ? $ data : false ; }
Get the list of campaigns and their details matching the specified filters

@link http://apidocs.mailchimp.com/api/2.0/campaigns/list.php
@param array $filters
@param int $start start page
@param int $limit limit
@param string $sort_field
@param string $sort_dir
@return array
@throws \Exception
@throws MailchimpAPIException
Get the list of campaigns and their details matching the specified filters