}
?>
"><br/>
            htmlBody: <input type="text" name="htmlBody" value="<?php 
if (isset($_REQUEST['htmlBody'])) {
    echo htmlspecialchars($_REQUEST['htmlBody']);
}
?>
"><br/>
            contentType: <input type="text" name="contentType" value="<?php 
if (isset($_REQUEST['contentType'])) {
    echo htmlspecialchars($_REQUEST['contentType']);
}
?>
"><br/>
            mergeContext: <input type="text" name="mergeContext" value="<?php 
if (isset($_REQUEST['mergeContext'])) {
    echo htmlspecialchars($_REQUEST['mergeContext']);
}
?>
"><br/>
    <input type="submit">
<input type="hidden" name="go">
</form>
<?php 
include '../infusionsoft.php';
include 'testUtils.php';
if (isset($_REQUEST['go'])) {
    $out = Infusionsoft_APIEmailService::updateEmailTemplate($_REQUEST['templateId'], $_REQUEST['pieceTitle'], $_REQUEST['categories'], $_REQUEST['fromAddress'], $_REQUEST['toAddress'], $_REQUEST['ccAddress'], $_REQUEST['bccAddress'], $_REQUEST['subject'], $_REQUEST['textBody'], $_REQUEST['htmlBody'], $_REQUEST['contentType'], $_REQUEST['mergeContext']);
    var_dump($out);
}