Skip to content

german-st/node-red-contrib-sharepoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

npm

README

A simple node for MS SharePoint REST API (NTLM authentication). Supports GET and POST methods.

Install

Install latest release: npm i -g node-red-contrib-sharepoint

Inputs

msg.spURL string

End point REST. Specified in the config(URL service) or passed in stream mode. URL must contain "/_api/" path.

Example: http://server/site/_api/lists/getbytitle('listname')

msg.headers Object

Special headers for SharePoint POST request (methods, etc). You must specify them yourself. X-RequestDigest not required to specify, it is written automatically.

Example: msg.headers= { 'X-HTTP-Method': 'MERGE','IF-MATCH': '*' } Additional info

msg.payload Object

Body(data) for our POST request.

Example: msg.payload = { '__metadata': { 'type': 'SP.List' }, 'Title': 'TestList' }

Additional info 1

Additional info 2

Outputs

msg.sharepointresult Object

First output. Result. The object that is returned by the service.

msg.error Object

Second output. Error. The error that service returned or Nodejs platform error.

Details

NTLM authentication

The GET method does not need to be specified msg.headers and msg.payload, the request parameters are transmitted in the URL itself (path, filters, etc.)

For more info

About

Node for MS SharePoint REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published