n8n-nodes-scalefluidly
Version:
ScaleFluidly N8N Node
58 lines • 1.86 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScaleFluidlyApi = void 0;
class ScaleFluidlyApi {
constructor() {
this.name = 'scaleFluidlyApi';
this.displayName = 'ScaleFluidly API';
this.icon = 'file:../nodes/ScaleFluidly/ScaleFluidly.svg';
this.properties = [
{
displayName: 'Environment',
name: 'environment',
type: 'options',
options: [
{
name: 'Dev',
value: 'https://documentation-dev.scalefluidly.com',
},
{
name: 'QA',
value: 'https://documentation.scalefluidly.com',
},
{
name: 'Local',
value: 'http://localhost:8400',
}
],
default: 'Dev',
noDataExpression: true,
required: true,
description: 'Environment Type',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.apiKey}}'
},
},
};
this.test = {
request: {
baseURL: '={{$credentials.environment}}',
url: '/api/account/getAllEmails',
},
};
}
}
exports.ScaleFluidlyApi = ScaleFluidlyApi;
//# sourceMappingURL=ScaleFluidlyApi.credentials.js.map