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);
        console.log("Template downloaded successfully!");
    } catch (error) {
        console.error("Error occurred while calling the API:", error);
    }
}
downloadTemplate();