boldsign
Version:
NodeJS client for boldsign
15 lines (13 loc) • 450 B
text/typescript
import { TemplateApi } from '../api/templateApi';
const templateApi = new TemplateApi();
templateApi.setApiKey("YOUR_API_KEY");
var templateId = "YOUR_TEMPLATE_ID";
async function deleteTemplate() {
try {
await templateApi.deleteTemplate(templateId);
console.log("Template deleted successfully!");
} catch (error:any) {
console.error("Error occurred while calling the API:", error.message);
}
}
deleteTemplate();