UNPKG

n8n-nodes-inflow-crm

Version:

Official Inflow CRM integration for n8n. Create, update, search records and handle webhooks with dynamic field support.

49 lines (48 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InflowCrmApi = void 0; class InflowCrmApi { constructor() { this.name = 'inflowCrmApi'; this.displayName = 'Inflow CRM API'; this.documentationUrl = 'https://inflowcrm.pl'; this.properties = [ { displayName: 'Server URL', name: 'serverUrl', type: 'string', default: 'https://srv.inflowcrm.pl', placeholder: 'https://your-instance.inflowcrm.pl', description: 'The URL of your Inflow CRM instance.', required: true, }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', description: 'Your Inflow CRM API Key.', required: true, }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'x-api-key': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.serverUrl}}', url: '/api/validateapiKey', method: 'POST', }, }; } } exports.InflowCrmApi = InflowCrmApi;