n8n-nodes-exchangerate-api
Version:
n8n community node for the Exchange Rate API
40 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExchangeRateCredentialsApi = void 0;
class ExchangeRateCredentialsApi {
constructor() {
this.name = 'exchangeRateCredentialsApi';
this.displayName = 'ExchangeRate API';
this.documentationUrl = 'https://www.exchangerate-api.com/docs/authentication';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'The API key for the ExchangeRate API',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{`Bearer ${$credentials.apiKey}`}}',
},
},
};
this.test = {
request: {
baseURL: 'https://v6.exchangerate-api.com',
url: '/v6/latest/USD',
method: 'GET',
},
};
}
}
exports.ExchangeRateCredentialsApi = ExchangeRateCredentialsApi;
//# sourceMappingURL=ExchangeRateCredentialsApi.credentials.js.map