You need to build a SharePoint Framework (SPFx) web part that will display the contents of a user's Microsoft Exchange Online inbox. The solution must minimize development effort.
Which object should you include in the solution?
MSGraphClient is a new HTTP client introduced in SharePoint Framework v1.6.0 that simplifies connecting to the Microsoft Graph inside SharePoint Framework solutions.
With MS Graph we use MSGraphClient to get information about the current user;
this.context.msGraphClientFactory
.getClient()
.then((client: MSGraphClient): void => {
// get information about the current user from the Microsoft Graph
client
.api('/me')
.get((error, response: any, rawResponse?: any) => {
// handle the response
});
});
Currently there are no comments in this discussion, be the first to comment!