コード例 #1
0
#!/usr/bin/php
<?php 
require_once dirname(__FILE__) . '/../../common.php';
$phpLiveDocx = new Tis_Service_LiveDocx_MailMerge(USERNAME, PASSWORD);
$counter = 1;
foreach ($phpLiveDocx->listTemplates() as $result) {
    printf('%d) %s', $counter, $result['filename']);
    $phpLiveDocx->deleteTemplate($result['filename']);
    printf(" - DELETED.\n");
    $counter++;
}
unset($phpLiveDocx);