SpRestLib

SpRestLib

  • Download
  • Get Started
  • API Documentation
  • SharePoint Guides
  • GitHub

›Features

Get Started

  • Installation
  • Promise You Will Love It
  • Promise-based Operations

Features

  • Library Integration
  • Library Options
  • SharePoint via Node.js
  • Utility Methods

API Reference

  • List/Library Methods (SP.List)
  • File Methods (SP.File)
  • Folder Methods (SP.Folder)
  • Site Methods (SP.Web)
  • User Methods (SP.User)
  • REST API Methods

SpRestLib UI

  • Form Binding

Help / Support

  • SharePoint Authentication

SharePoint via Node.js

Connect To Office 365/SharePoint Online With Node.js

SpRestLib can be utilized via Node.js to perform powerful operations, generate reports, etc.

Node mode is disabled by default, so setting the nodeEnabled flag is necessary:

`sprLib.nodeConfig({ nodeEnabled:true });`

Demo

See example/nodejs-demo.js for a complete, working Node demo showing how to connect to Office.com/SharePoint Online.

[brent@macbook 22:26:35] ~/Documents/GitHub/SpRestLib/example
$ node nodejs-demo.js [spUsername] [spPassword] [spHostUrl]

Starting demo...
================================================================================
> SpRestLib version: 1.7.0

 * STEP 1/2: Auth into login.microsoftonline.com ...
 * STEP 2/2: Auth into SharePoint ...
 * SUCCESS!! Authenticated into "sample.sharepoint.com"

TEST 1: sprLib.user().info()
----------------------------
Id.........: 99
Title......: Brent Ely
LoginName..: i:0#.f|membership|gitbrent@sample.onmicrosoft.com
Email......: gitbrent@sample.onmicrosoft.com

================================================================================
...demo complete.
← Library OptionsUtility Methods →
  • Connect To Office 365/SharePoint Online With Node.js
  • Demo
SpRestLib
Docs
Getting Started with SpRestLibSharePoint API ReferenceSharePoint Development GuidesAbout JavaScript Promises
Community
FacebookTwitterPinterestYouTube Channel
More
GitHub IssuesGitHub ProjectSpRestLib on Stack OverflowSite Icons
Copyright © 2019 Brent Ely