19
Introduction to Office365 API

Introduction to office365 api

Embed Size (px)

Citation preview

Page 1: Introduction to office365 api

Introduction to Office365 API

Page 2: Introduction to office365 api

• Office 365 Components• Office 365 API• Authentication• Discovery• API

• Office 365 Unified API

Agenda

Page 3: Introduction to office365 api

Office 365 components

Tenant A

Applications

Principal Manageme

nt

Page 4: Introduction to office365 api

Custom Applications

Office 365 components

Page 5: Introduction to office365 api

Challenges … • Prompt for credentials • Couldn’t discover content automatically

Office 365 API

Page 6: Introduction to office365 api

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

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

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

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

API

Office 365 API

Sites Lists

Taxonomy

Workflow

Search

Active Directory

Exchange & Outlook

SharePoint

Page 11: Introduction to office365 api

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

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

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

API – Contacts• ContactFolder• Contact

• Samples• https://outlook.office365.com/api/v1.0/me/contacts

Office 365 API

Page 15: Introduction to office365 api

API – OneDrive

Samples• https://<onedrive>/_api/v1.0/me/files

Office 365 API

Page 16: Introduction to office365 api

SDKs

Office 365 API

Page 17: Introduction to office365 api

• Exposes multiple APIs from Microsoft cloud services through a single REST API endpoint

• Still in beta

Office 365 Unified API

Page 19: Introduction to office365 api

Thank You !