3. Me
Tech Lead – C# .NET / SQL /O-365
development
C# Corner MVP
RN Design
Award winning Architecture /
Design firm
Specializes in serving residential
development industry
3
4. Make developers aware of the power of MS Graph API – a
great option for Office 365 development
4
One Endpoint to rule them all
5. Introduction
Background
Why MS Graph
Advantages, Features, Limitations
Development overview
Dev. stack
MS Graph API Explorer
MS Graph SDK
Demo
Q & A
5
6. 400M Outlook.com monthly active users
85% of Fortune 500 companies are using O365
100M monthly active users on Office 365 commercial
Estimated 120M by 2017 end. source
8T resources (emails, events, users, files, groups, and more)
6
source
7. What is Graph API
REST API to interact with data from O-365 / MS Cloud
Why MS Graph API?
Let’s see
7
10. Outlook emails, contacts, calendars
https://outlook.office.com/api
Files from cloud
https://api.onedrive.com
OneNote
https://www.onenote.com/api
And many more…
10
11. Find the URL/endpoint of the API
Authenticate/Get access token
Get information from the API
Repeat for each service/API
Multiple token management
11
15. Single well-known resource
Get (mostly) everything from a single endpoint
Users, Groups, Mail, Calendars, Contacts
Files, Tasks, People, Notes and more…
Ease of development
No more calling a different endpoint for each service
No more obtaining separate tokens for different services
Logical Navigation
Platform flexibility
15
18. •Used by 85% of the Fortune 500
The Microsoft identity stack
•REST JSON
•OAUTH 2.0 OpenID Connect
•ODATA V4.0
Open standards support
•Get notified on action/event
Get real time updates with Web hooks
•trending documents
•who people typically work with
•best team meeting times
Intelligence and insights
18
19. •Open extensions
•Schema extensions
Add custom data using extensions
Track changes using delta query
•Currently in preview
Available in your hybrid cloud
•JSON batching (preview)
Combine multiple requests
19
20. Open standard for “authorization”
not an “authentication” protocol
Authorizes access to resources
Uses token after third party authentication is done
Provides secured delegated access on behalf of owner
MS Graph API supports OAuth 2.0
OpenID Connect
works as identity layer - asserts identity
How it works
20
22. The Open Data Protocol
“The best way to REST”
Uses URL query string operators
Simple, standard and readable expressions
MS Graph API supports OData V4
22
25. $top – specific no. of items
$skip – skip items in result
$count – how many items
$select – specific property
$orderby – sort the result
$search – match a criteria
$expand – include child objects
25
26. Register the application
•MS App Registration Portal : https://apps.dev.microsoft.com
Register
Configure the project with ID & keyConfigure
Authenticate the user and get an access tokenAuthenticate
Call Microsoft Graph APICall
Show the result on UIShow
26
27. New functionalities appear first in individual Office 365 REST
APIs
Some functionality not yet available, some in preview
Choosing your API endpoint
Query parameter limitations
$expand: only 1 level, no nextLink support
$search: only available on some entities
JSON batching
Nested batching not allowed
Delta query (change tracking)
Not supported on data extensions
27
28. Live / GA
Users, Groups, Outlook, OneDrive
SharePoint sites API
Planner API
OneNote API
Custom data extensions
Preview / Beta
Teams API
Insight API
SharePoint list API
Office 365 Reporting API
28
29. MS Graph Explorer
Graph Explorer Permissions
MS App Registration Portal
MS Graph SDK
29
36. Thank you and see you next year!
Join us for SharePint after the event @ 5:30pm
6982 Financial Dr. (Drake A Firkin) and don’t forget to
submit feedback after each session for your chance to
win great prizes at the end of the day!
Survey Link: http://bit.ly/2vWCcoM