public function listAll($types = array(), $filters = array()) {
        $payload = array(
            'types' => $types,
            'filters' => $filters
        );
        $apiCall = 'templates/list';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data,true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return $data;
    }
public function listAll($types = array(), $filters = array()) {
        $payload = array(
            'types' => $types,
            'filters' => $filters
        );
        $apiCall = 'templates/list';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data,true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return $data;
    }
public function listAll ( $ types = array ( ) , $ filters = array ( ) ) { $ payload = array ( 'types' => $ types , 'filters' => $ filters ) ; $ apiCall = 'templates/list' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return $ data ; }
Retrieve various templates available in the system, allowing some thing similar to our template gallery to be created.

@link http://apidocs.mailchimp.com/api/2.0/templates/list.php
@param array $types optional the types of templates to return
@param array $filters optional options to control how inactive templates are returned, if at all
@return array
@throws MailchimpAPIException
Retrieve various templates available in the system allowing some thing similar to our template gallery to be created .