Getting Started with the Microsoft Graph Toolkit
Skills:
API Design60%
Key Takeaways
Using the Microsoft Graph Toolkit for web component library and UI components
Full Transcript
hello everybody and welcome today we're gonna be talking about the Microsoft graph toolkit and with us today is Nicola who's gonna tell us all about it so Nicola what is the Microsoft graph toolkit the max of graph toolkit is an open source framework agnostic web components library that allows you to use the Microsoft graph on all your web application it's all the components are completely powered by the Microsoft graph and so what kind of components are we talking about here so we're talking about things like a lion component which allows you to display the current logged in user allows you to log in log out a tax component that shows your planner tasks or your Microsoft to do tasks we have a calendar slash agenda component we're also working on other components and keep adding more and more components and so we say compose but like what platform of these components built on a great question so because they are built on top of web standards the web component standards they work with all the framework web frameworks out there so if you using react or angular or view or no framework at all if you just go in vanilla this just works it works in all the major browsers out there right now that's really cool yes now you said powered by the Microsoft graph what exactly do you mean by that great question so because we are working with the Microsoft graph we are able to write all the code needed to talk to all the different endpoints so the task component already knows how to talk to Microsoft planner or Microsoft to do and display all your tasks or the calendar control he knows how to start a calendar so you don't really have to write any code to grab data from the graph here on earth it just happens automatically that sounds magical can you show is it actually oh I would love to yes so here it is I'm in Visual Studio code right now so there's two ways to use this in your web applications either through just a script tag or you can use it through our NPM package the easiest way to do it is just to use it through a script tag and I've already added this here I don't have anything else in my project can see here it's just index.html and I'm hosting this on just a regular web server and then I'm just gonna add for example an MGT login component and then if we open up this in the browser and go in private window on localhost and let me zoom in so you can see here it's just a button that I'm clicking it doesn't really do anything not so magical yet no no I mean it's kind of magical online but it doesn't know how to you know how to sign you in so we tell how to do that so we have this notion of providers so if you already have code that you're using to sign in like an M cell library for example you can just tell us how to what that is and we can use that or we can just let us create one for you the quickest way is to use another component called M cell provider and then just tell us the client ID that you've already registered in the adder portal so I'm just gonna use the one that I already have here and here it is and now this will create an end user agent application behind the scenes and all the components will be using this provider to talk to the graph and now if I go back here I can click sign-in it will auto key knows that I need you redirect and I can sign in to my tenant and I'll should be able to get all the data I need there it is that's a little bit more magical what is very magical it gets all the data from the graph my name might my picture and everything I guess you even more cooler when you start adding some other components on here so for example we're working on a tasks component right now and if I just add that one it will load all the tasks that are in planner right now by default so you can list all my planners that I have on descendant and I can complete tasks here or obviously I've already prepared for a demo so it's already simply tit I haven't practiced it yet so I probably just delete this later but yeah that's it just with few lines of code you get a full working full code now I showed you the emcell provider we have providers also for SharePoint and teams so if you're using these in a team's tab or a SharePoint web part you still can use it can do that so for example I have this new project I created I just did a new react based web part so it's using react it's supposed to work on SharePoint out-of-the-box I've already added the component here so for example into this react component I've added this agenda component that we're working on just displays a list of my events on the calendar yes exactly yeah and then I've to tell it how do we actually talk to the graph I have to use a SharePoint provider so I just use a initialize a new Sherpa provider with the context of this webpart and then behind the scenes with the all the magic to connect all the components use what this web part with this context so now if I open up this into my workbench it should automatically load I'm already hosting it through gulp and if I just open this up here MGT demo it will load up my web part and in a second you'll see the agenda pop popping up and filling up and set that's very cool indeed so if folks want to learn more about this where do they go to find out more so right now we're in preview and we're open source so we'll be working with this completely in the open with the community to get started right now to download and to start using it just go to aka.ms/offweb age well thank you very much for joining us today Nicola and I hope you enjoy all the things that you can do with this Microsoft graph toolkit
Original Description
The Microsoft Graph Toolkit is a web component library for the Microsoft Graph that offers reusable and functional UI components for common experiences that work with any web framework. These components can be used in your modern web application, SharePoint web parts, Microsoft Teams tabs, and more. Learn how to get started.
To learn more about the Microsoft Graph Toolkit,
visit https://github.com/microsoftgraph/microsoft-graph-toolkit
For additional Microsoft Graph tools and resources, visit https://graph.microsoft.com.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 22 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
▶
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Adaptive Cards community call-February 2019
Microsoft 365 Developer
PowerApps community call-February 2019
Microsoft 365 Developer
Microsoft Graph community call-March 2019
Microsoft 365 Developer
Office Add ins community call-March 2019
Microsoft 365 Developer
PowerApps community call-March 2019
Microsoft 365 Developer
Microsoft Teams community call-March 2019
Microsoft 365 Developer
Using React and Office UI Fabric React Components
Microsoft 365 Developer
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
Microsoft Graph community call-April 2019
Microsoft 365 Developer
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
Office Add Ins community call-April 2019
Microsoft 365 Developer
Adaptive Cards community call-April 2019
Microsoft 365 Developer
Microsoft Teams community call-April 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
Getting Started with Microsoft Graph
Microsoft 365 Developer
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
Adaptive Cards community call-May 2019
Microsoft 365 Developer
Office Add-ins community call-May 2019
Microsoft 365 Developer
Why We Built on Microsoft Teams
Microsoft 365 Developer
Microsoft Teams community call-May 2019
Microsoft 365 Developer
Microsoft Graph community call-June 2019
Microsoft 365 Developer
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Office Add -ins community call-June 2019
Microsoft 365 Developer
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer
More on: API Design
View skill →
🎓
Tutor Explanation
DeepCamp AI