public function getTemplate($template_name, array $options = []) { $options['template'] = $template_name; return $this->apiGet('template', $options); }
function get_template_info() { require_once 'client/requires.php'; $client = new Sailthru_Client(get_option('sailthru_api_key'), get_option('sailthru_secret')); $res = $client->getTemplate($_POST['template']); echo json_encode($res); die; }