@pixelinfinito/n8n-nodes-vendus
Version:
Vendus API integration for n8n - Invoicing and business management automation
46 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VendusApi = void 0;
class VendusApi {
constructor() {
this.name = 'vendusApi';
this.displayName = 'Vendus API';
this.documentationUrl = 'https://www.vendus.co.ao/ws/v1.1/';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
typeOptions: {
password: true,
},
required: true,
description: 'Your Vendus API key. This will be sent as a request parameter (api_key).',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: 'https://www.vendus.co.ao/ws/v1.1',
description: 'The base URL for the Vendus API',
},
];
this.authenticate = {
type: 'generic',
properties: {
qs: {
api_key: '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials?.baseUrl}}',
url: '/account',
},
};
}
}
exports.VendusApi = VendusApi;
//# sourceMappingURL=VendusApi.credentials.js.map