Download - Introduction to office365 api
![Page 1: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/1.jpg)
Introduction to Office365 API
![Page 2: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/2.jpg)
• Office 365 Components• Office 365 API• Authentication• Discovery• API
• Office 365 Unified API
Agenda
![Page 3: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/3.jpg)
Office 365 components
Tenant A
Applications
Principal Manageme
nt
![Page 4: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/4.jpg)
Custom Applications
Office 365 components
![Page 5: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/5.jpg)
Challenges … • Prompt for credentials • Couldn’t discover content automatically
Office 365 API
![Page 6: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/6.jpg)
What is Office 365 API?• Set of REST APIs enable you to provide access to
Office 365 data, including mail, calendars, contacts, users and groups, files, and folders within our app
Office 365 API
![Page 7: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/7.jpg)
Authentication• Azure active directory OAuth in Office 365• Ability from custom applications to have single
authentication flow to access all O365 APIs like• Azure ad• Exchange• SharePoint , etc..
Office 365 API
![Page 8: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/8.jpg)
Authentication - Actors• Custom Application• Azure AD authorization endpoint• The webpage that tells user to authorize app access. Returns
authorization code
• Azure AD token endpoint• App gets the access token. Returns access token and a multi resource
refresh token
• Office 365 API
Office 365 API
![Page 9: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/9.jpg)
Discovery Services• Based on the access token, app can ask office 365
what are the resources it can access• Client doesn’t require to type in long addresses
Office 365 API
![Page 10: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/10.jpg)
API
Office 365 API
Sites Lists
Taxonomy
Workflow
Search
Active Directory
Exchange & Outlook
SharePoint
![Page 11: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/11.jpg)
API – Files• File• Folder• Drive
• Samples• https://<sharepoint>/_api/v1.0/me/files• https://<sharepoint>/_api/v1.0/me/files/getByPath(“foldername/file”)
Office 365 API
![Page 12: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/12.jpg)
API – Calendar• CalendarGroup• Calendar• Event• Attachment
• Samples• https://outlook.office365.com/api/v1.0/me/calendars• https://outlook.office365.com/api/v1.0/me/events
Office 365 API
![Page 13: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/13.jpg)
API – Mail• Folder• Message• Attachment
• Samples• https://outlook.office365.com/api/v1.0/me/folders/inbox/messages• https://outlook.office365.com/api/v1.0/me/folders/inbox/sendMail
Office 365 API
![Page 14: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/14.jpg)
API – Contacts• ContactFolder• Contact
• Samples• https://outlook.office365.com/api/v1.0/me/contacts
Office 365 API
![Page 15: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/15.jpg)
API – OneDrive
Samples• https://<onedrive>/_api/v1.0/me/files
Office 365 API
![Page 16: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/16.jpg)
SDKs
Office 365 API
![Page 17: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/17.jpg)
• Exposes multiple APIs from Microsoft cloud services through a single REST API endpoint
• Still in beta
Office 365 Unified API
![Page 18: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/18.jpg)
• Samples• https://graph.microsoft.com/<version>/<tenant>/contacts• https://graph.microsoft.com/<version>/<tenant>/groups• https://graph.microsoft.com/<version>/me/files?$filter=name+ne+'mySecret'&$
select=id,name,webUrl
Office 365 Unified API
![Page 19: Introduction to office365 api](https://reader034.vdocuments.site/reader034/viewer/2022042716/55cef86abb61eb2f028b4707/html5/thumbnails/19.jpg)
Thank You !