Skip to content

A helper library for building SharePoint provider hosted addins with Node.js

Notifications You must be signed in to change notification settings

ypcode/node-spaddin-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharePoint provider-hosted Addins with Node.js

Platform

  • Supports only SharePoint Online

How to install

npm install spaddin-helper --save

How to use

In a Node http request handler

const handler = (req, res) => { let ctx = SharePointContext.getFromRequest(req); ctx.createAppOnlyClientForSPHost().then(client => { client.get('/_api/web/currentuser').then(user => { console.log(username = ${user.Title}); }); }); };

About

A helper library for building SharePoint provider hosted addins with Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published