n8n-nodes-jegyhu-api
Version:
n8n community node for Jegy.hu API integration
40 lines (39 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JegyHuApi = void 0;
class JegyHuApi {
constructor() {
this.name = 'jegyHuApi';
this.displayName = 'Jegy.hu API';
this.documentationUrl = 'https://jegy.hu/api/doc';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
description: 'Your Jegy.hu API key',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: 'https://mobiletest.jegy.hu/api',
description: 'Base URL for the Jegy.hu API',
},
];
this.authenticate = {
type: 'generic',
properties: {
qs: {
'_api_key': '={{$credentials.apiKey}}',
'_format': 'json',
},
},
};
}
}
exports.JegyHuApi = JegyHuApi;