sailthru/Sailthru_Client.php
public function saveTemplate($template_name, array $template_fields = [ ]) {
        $data = $template_fields;
        $data['template'] = $template_name;
        return $this->apiPost('template', $data);
    }
public function saveTemplate($template_name, array $template_fields = [ ]) {
        $data = $template_fields;
        $data['template'] = $template_name;
        return $this->apiPost('template', $data);
    }
public function saveTemplate ( $ template_name , array $ template_fields = [ ] ) { $ data = $ template_fields ; $ data [ 'template' ] = $ template_name ; return $ this -> apiPost ( 'template' , $ data ) ; }
Save a template.

@param string $template_name
@param array $template_fields
@link http://docs.sailthru.com/api/template
@return array API result
Save a template .