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

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

        return $response->getData();
    }
public function getDetailContent ( $ id ) { $ response = $ this -> mailjet -> get ( Resources :: $ TemplateDetailcontent , [ 'id' => $ id ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "TemplateService:getDetailContent failed" , $ response ) ; } return $ response -> getData ( ) ; }
Return the text and html contents of the Template
@param string $id
@return array
Return the text and html contents of the Template