UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

14 lines 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCustomer = getCustomer; const transport_1 = require("../../../transport"); async function getCustomer(index) { const id = this.getNodeParameter('customerId', index); const qs = {}; const requestMethod = 'GET'; const endpoint = `customers/${id}`; const body = {}; const responseData = await transport_1.apiRequest.call(this, requestMethod, endpoint, body, qs); return this.helpers.returnJsonArray(responseData.customer); } //# sourceMappingURL=execute.js.map