UNPKG

boldsign

Version:

NodeJS client for boldsign

15 lines (13 loc) 494 B
import { TemplateApi } from '../api/templateApi'; const templateApi = new TemplateApi(); templateApi.setApiKey("YOUR_API_KEY"); var templateId = "YOUR_TEMPLATE_ID"; async function getTemplateProperties() { try { var propertyResponse = await templateApi.getProperties(templateId); console.log("Template Properties:", propertyResponse); } catch (error:any) { console.error("Error occurred while calling the API:", error.message); } } getTemplateProperties();