msgraph-helper
TypeScript icon, indicating that this package has built-in type declarations

0.8.3 • Public • Published

msgraph-helper

Simplifies usage of the MSGraph client in your SPFX solutions.

Usage

Import the helper:

import MSGraph from 'msgraph-helper';

In your main webpart or extension in the onInit function, add the following:

 await MSGraph.Init(this.context.msGraphClientFactory, 'v1.0');

Anywhere in your soluton you can now do:

import MSGraph from 'msgraph-helper';
 
let memberOf = await MSGraph.Get('/me/memberOf');

The helper supports Get, Patch, Put and Delete.

Readme

Keywords

none

Package Sidebar

Install

npm i msgraph-helper

Weekly Downloads

25

Version

0.8.3

License

MIT

Unpacked Size

28.3 kB

Total Files

8

Last publish

Collaborators

  • olemp2