public function create(Template $Template)
    {
        $response = $this->mailjet->post(Resources::$Template,
            ['body' => $Template->format()]);
        if (!$response->success()) {
            $this->throwError("TemplateManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create(Template $Template)
    {
        $response = $this->mailjet->post(Resources::$Template,
            ['body' => $Template->format()]);
        if (!$response->success()) {
            $this->throwError("TemplateManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create ( Template $ Template ) { $ response = $ this -> mailjet -> post ( Resources :: $ Template , [ 'body' => $ Template -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "TemplateManager:create() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Add a new template resource with a POST request.
@param Template $Template
Add a new template resource with a POST request .