UNPKG

n8n-nodes-tulip

Version:
56 lines 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TulipApi = void 0; class TulipApi { constructor() { this.name = 'tulipApi'; this.displayName = 'Tulip API'; this.documentationUrl = 'https://support.tulip.co/docs/setting-up-a-tulip-api'; this.properties = [ { displayName: 'Factory URL', name: 'factoryUrl', type: 'string', default: '', placeholder: 'https://your-factory-instance.tulip.co', required: true, }, { displayName: 'API key', name: 'apikey', type: 'string', default: '', placeholder: 'apikey.2_', required: true, }, { displayName: 'API secret', name: 'apisecret', type: 'string', typeOptions: { password: true, }, default: '', required: true, }, ]; this.authenticate = { type: 'generic', properties: { auth: { username: '={{ $credentials.apikey }}', password: '={{ $credentials.apisecret }}', }, }, }; this.test = { request: { baseURL: '={{ $credentials.factoryUrl }}', url: '/api/v3/machines', method: 'GET', }, }; } } exports.TulipApi = TulipApi; //# sourceMappingURL=TulipApi.credentials.js.map