n8n-nodes-unleashed
Version:
n8n community node to integrate with Unleashed inventory management API
51 lines • 1.61 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnleashedApi = void 0;
class UnleashedApi {
constructor() {
this.name = 'unleashedApi';
this.displayName = 'Unleashed API';
this.documentationUrl = 'https://apidocs.unleashedsoftware.com/';
this.properties = [
{
displayName: 'API ID',
name: 'apiId',
type: 'string',
default: '',
required: true,
description: 'The Unleashed API ID',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'The Unleashed API Key',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'api-auth-id': '={{$credentials.apiId}}',
'api-auth-signature': '={{$credentials.apiKey}}',
'Content-Type': 'application/json',
'Accept': 'application/json',
},
},
};
this.test = {
request: {
baseURL: 'https://api.unleashedsoftware.com',
url: '/Customers',
method: 'GET',
},
};
}
}
exports.UnleashedApi = UnleashedApi;
//# sourceMappingURL=UnleashedApi.credentials.js.map
;