UNPKG

n8n-nodes-placid

Version:

n8n node to interact with Placid API for creative generation

26 lines 835 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPdfById = getPdfById; exports.execute = execute; async function getPdfById(executeFunctions, pdfId) { const options = { method: 'GET', url: `https://api.placid.app/api/rest/pdfs/${pdfId}`, headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, }; return await executeFunctions.helpers.httpRequestWithAuthentication.call(executeFunctions, 'placidApi', options); } async function execute(i) { const pdfId = this.getNodeParameter('pdfId', i); if (!pdfId) { throw new Error('PDF ID is required'); } const response = await getPdfById(this, pdfId); return { json: response, }; } //# sourceMappingURL=get.operation.js.map