UNPKG

n8n-nodes-mallabe-currencies

Version:

n8n community node that allows you to convert / exchange currencies to other currencies as well as get the daily rates of currencies using Mallabe Currencies

39 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MallabeCurrenciesApi = void 0; const N8N_API_KEY = 'xPHYKn7ar42idNoYrbyuc1xTk6LDWpPoIGvCRLK2'; class MallabeCurrenciesApi { constructor() { this.name = 'mallabeCurrenciesApi'; this.displayName = 'Mallabe Currencies API'; this.documentationUrl = 'https://www.mallabe.com'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'User-Agent': 'n8n', 'x-api-key': N8N_API_KEY, 'x-account-api-key': '={{$credentials.apiKey}}' }, }, }; this.test = { request: { baseURL: 'https://api.mallabe.com', url: '/v1/accounts/me', method: 'POST' }, }; } } exports.MallabeCurrenciesApi = MallabeCurrenciesApi; //# sourceMappingURL=MallabeCurrenciesApi.credentials.js.map