src/Services/TemplateService.php
public function getAll(array $filters = null)
    {
        $response = $this->mailjet->get(Resources::$Template,
            ['filters' => $filters]);
        if (!$response->success()) {
            $this->throwError("TemplateService :getAll() failed", $response);
        }

        return $response->getData();
    }
public function getAll(array $filters = null)
    {
        $response = $this->mailjet->get(Resources::$Template,
            ['filters' => $filters]);
        if (!$response->success()) {
            $this->throwError("TemplateService :getAll() failed", $response);
        }

        return $response->getData();
    }
public function getAll ( array $ filters = null ) { $ response = $ this -> mailjet -> get ( Resources :: $ Template , [ 'filters' => $ filters ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "TemplateService :getAll() failed" , $ response ) ; } return $ response -> getData ( ) ; }
List template resources available for this apikey, use a GET request.
Alternatively, you may want to add one or more filters.
@param array optional $filters
@return templates
List template resources available for this apikey use a GET request . Alternatively you may want to add one or more filters .