n8n-nodes-placid
Version:
n8n node to interact with Placid API for creative generation
26 lines • 799 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.execute = execute;
async function execute(i) {
const videoId = this.getNodeParameter('videoId', i);
if (!videoId) {
throw new Error('Video ID is required');
}
const options = {
method: 'DELETE',
url: `https://api.placid.app/api/rest/videos/${videoId}`,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
};
await this.helpers.httpRequestWithAuthentication.call(this, 'placidApi', options);
return {
json: {
success: true,
message: `Video ${videoId} deleted successfully`,
id: videoId,
},
};
}
//# sourceMappingURL=delete.operation.js.map