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

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

        return $response->getData();
    }
public function get ( $ id ) { $ response = $ this -> mailjet -> get ( Resources :: $ Template , [ 'id' => $ id ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "TemplateService:get() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Access a given template resource, use a GET request, providing the template's ID value
@param string $id
@return $Template
Access a given template resource use a GET request providing the template s ID value