spaddin-helper

1.2.26 • Public • Published

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}); }); }); };

Dependents (0)

Package Sidebar

Install

npm i spaddin-helper

Weekly Downloads

0

Version

1.2.26

License

ISC

Unpacked Size

61.8 kB

Total Files

28

Last publish

Collaborators

  • jeromemmiranda