n8n-nodes-parse-pdf
Version:
Extract text, tables, and structured data from PDF files using PDF API Hub
46 lines • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PdfapihubApi = void 0;
class PdfapihubApi {
constructor() {
this.name = 'pdfapihubApi';
this.displayName = 'PDF API Hub API';
this.documentationUrl = 'https://pdfapihub.com/docs';
this.icon = {
light: 'file:../icons/light.svg',
dark: 'file:../icons/dark.svg'
};
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: { 'CLIENT-API-KEY': '={{$credentials.apiKey}}' },
},
};
this.test = {
request: {
baseURL: 'https://pdfapihub.com',
url: '/api/v1/pdf/merge',
method: 'POST',
headers: {
'CLIENT-API-KEY': '={{$credentials.apiKey}}',
'Content-Type': 'application/json',
},
body: {
urls: ['https://pdfapihub.com/sample1.pdf', 'https://pdfapihub.com/sample1.pdf'],
output: 'url',
},
},
};
}
}
exports.PdfapihubApi = PdfapihubApi;
//# sourceMappingURL=PdfapihubApi.credentials.js.map