function get_template_list()
{
require_once 'client/requires.php';
$client = new Sailthru_Client(get_option('sailthru_api_key'), get_option('sailthru_secret'));
$res = $client->getTemplates();
if (isset($res['templates']) && $res['templates']) {
$return = array();
foreach ($res['templates'] as $template) {
$return[] = $template['name'];
}
return $return;
} else {
return array();
}
}