UNPKG

@bedrijfsdatanl/n8n-nodes-bedrijfsdata

Version:

n8n node for Bedrijfsdata.nl API - Search and retrieve Dutch company information

19 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.apiRequest = apiRequest; async function apiRequest(method, endpoint, body = {}, query) { query = query || {}; query.front = 30; const options = { method, body, qs: query, url: `https://api.bedrijfsdata.nl/v1.2/${endpoint}`, json: true, }; if (method === 'GET') { delete options.body; } return await this.helpers.httpRequestWithAuthentication.call(this, 'bedrijfsdataApi', options); } //# sourceMappingURL=GenericFunctions.js.map