UNPKG

boldsign

Version:

NodeJS client for boldsign

15 lines (13 loc) 459 B
import { TemplateApi } from '../api/templateApi'; const templateApi = new TemplateApi(); templateApi.setApiKey("YOUR_API_KEY"); var templateId = "YOUR_TEMPLATE_ID"; async function downloadTemplate() { try { await templateApi.download(templateId,"",true); console.log("Template downloaded successfully!"); } catch (error:any) { console.error("Error occurred while calling the API:", error.message); } } downloadTemplate();