node-red-contrib-sharepoint

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i node-red-contrib-sharepoint

Weekly Downloads

10

Version

1.0.3

License

none

Unpacked Size

13.6 kB

Total Files

4

Last publish

Collaborators

  • german-st