UNPKG

n8n-nodes-dext

Version:

n8n node for Dext Precision API

40 lines (39 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DextApi = void 0; class DextApi { constructor() { this.name = 'dextApi'; this.displayName = 'Dext API'; this.documentationUrl = 'https://help.dext.com/en/articles/105818-precision-api'; this.properties = [ { displayName: 'API Token', name: 'apiToken', type: 'string', typeOptions: { password: true, }, default: '', description: 'The API token for Dext Precision API. Get it from Your Settings > API tab in Precision.', required: true, }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiToken}}', }, }, }; this.test = { request: { baseURL: 'https://api.xavier-analytics.com', url: '/clients', method: 'GET', }, }; } } exports.DextApi = DextApi;