UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

16 lines 673 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.microsoftSharePointApiRequest = microsoftSharePointApiRequest; async function microsoftSharePointApiRequest(method, endpoint, body = {}, qs, headers, url) { const credentials = await this.getCredentials('microsoftSharePointOAuth2Api'); const options = { method, url: url ?? `https://${credentials.subdomain}.sharepoint.com/_api/v2.0${endpoint}`, json: true, headers, body, qs, }; return await this.helpers.httpRequestWithAuthentication.call(this, 'microsoftSharePointOAuth2Api', options); } //# sourceMappingURL=index.js.map