n8n-nodes-authentica
Version:
Authentica (Balance + OTP Send/Verify) node for n8n
46 lines • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticaApi = void 0;
class AuthenticaApi {
constructor() {
this.name = 'authenticaApi';
this.displayName = 'Authentica API';
this.documentationUrl = 'https://authenticasa.docs.apiary.io/#reference';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'Paste your Authentica API key (sent as header <code>X-Authorization</code>).',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: 'https://api.authentica.sa',
required: true,
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'X-Authorization': '={{$credentials.apiKey}}',
Accept: 'application/json',
},
},
};
this.test = {
request: {
method: 'GET',
baseURL: '={{$credentials.baseUrl}}',
url: '/api/v2/balance',
},
};
}
}
exports.AuthenticaApi = AuthenticaApi;
//# sourceMappingURL=AuthenticaApi.credentials.js.map