public function add($name, $html, $folderId = null) {
        $payload = array(
            'name' => $name,
            'html' => $html,
            'folder_id' => $folderId
        );
        $apiCall = 'templates/add';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data,true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data['template_id']) ? $data['template_id'] : false;
    }
public function add($name, $html, $folderId = null) {
        $payload = array(
            'name' => $name,
            'html' => $html,
            'folder_id' => $folderId
        );
        $apiCall = 'templates/add';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data,true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return isset($data['template_id']) ? $data['template_id'] : false;
    }
public function add ( $ name , $ html , $ folderId = null ) { $ payload = array ( 'name' => $ name , 'html' => $ html , 'folder_id' => $ folderId ) ; $ apiCall = 'templates/add' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return isset ( $ data [ 'template_id' ] ) ? $ data [ 'template_id' ] : false ; }
Create a new user template, NOT campaign content. These templates can then be applied while creating campaigns.

@link http://apidocs.mailchimp.com/api/2.0/templates/add.php
@param string $name the name for the template - names must be unique and a max of 50 bytes
@param string $html a string specifying the entire template to be created. This is NOT campaign conten
@param int $folderId optional the folder to put this template in.
@return int template_id on success
@throws MailchimpAPIException
Create a new user template NOT campaign content . These templates can then be applied while creating campaigns .