UNPKG

@digitalstories/n8n-nodes-infomaniak

Version:

n8n nodes to interact with Infomaniak services (Kchat)

22 lines 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.listUsers = listUsers; exports.getUser = getUser; async function listUsers(i, baseURL) { const response = await this.helpers.requestWithAuthentication.call(this, 'infomaniakApi', { method: 'GET', url: `${baseURL}/api/v4/users`, json: true, }); return response; } async function getUser(i, baseURL) { const userId = this.getNodeParameter('userId', i); const response = await this.helpers.requestWithAuthentication.call(this, 'infomaniakApi', { method: 'GET', url: `${baseURL}/api/v4/users/${userId}`, json: true, }); return response; } //# sourceMappingURL=UserOperations.js.map