28
http://www.chakkaradeep.com http://twitter.com/chakkaradeep

Getting started with Office 365 APIs

Embed Size (px)

Citation preview

Page 1: Getting started with Office 365 APIs

http://www.chakkaradeep.comhttp://twitter.com/chakkaradeep

Page 2: Getting started with Office 365 APIs
Page 3: Getting started with Office 365 APIs
Page 4: Getting started with Office 365 APIs
Page 5: Getting started with Office 365 APIs

z

Page 6: Getting started with Office 365 APIs

z

Page 7: Getting started with Office 365 APIs

Outlook Calendar People

OneDriveUsers Sites

Page 8: Getting started with Office 365 APIs
Page 9: Getting started with Office 365 APIs
Page 10: Getting started with Office 365 APIs

Entity Collection Actions

Folder Folders CRUD, Copy, Move

Message Messages

CRUD, Copy, Move, Reply, ReplyAll,

Forward, Send, CreateReply,

CreateReplyAll, CreateForward

Attachment Attachments CRUD

Page 11: Getting started with Office 365 APIs

Entity Collection Actions

CalendarGroup CalendarGroups CRUD

Calendar Calendars CRUD

Event Events CRUD, Accept, Decline, TentativelyAccept

CalendarView N/A Read

Attachment Attachments CRUD

Page 12: Getting started with Office 365 APIs

Entity Collection Actions

ContactFolder ContactFolders

Contact Contacts CRUD

Page 13: Getting started with Office 365 APIs

Entity Collection Actions

Drive Read

File Files CRUD, Upload, Download

Folder CRUD

Page 14: Getting started with Office 365 APIs

• https://graph.windows.net/contoso.com/groups?api-version=1.5

Entity Collection Actions

User Users CRUD

Groups Groups CRUD

Page 15: Getting started with Office 365 APIs

Scenario URL

Get 5 messages from Inbox https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages?$top=5

Get the next 10 messages https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages?$top=10&$skip=5

Get top 10 messages sorted

by DateTimeCreated

https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages?$top=10&$orderby=

DateTimeCreated

Get selective properties on

messages

https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages?$top=5&$select=Fro

m,DateTimeCreated,Subject

Get events starting after a

particular DateTime

https://outlook.office365.com/api/v1.0/Me/Events?$top=5&$select=Subject,Start,End&$fil

ter=Start ge 2014-09-22T20:00:00Z

Get Inbox messages with

subject and attachment info

https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages?$format=application/

json;odata.metadata=none&$select=Subject&$expand=Attachments

Get # of messages with

attachment(s)

https://outlook.office365.com/api/v1.0/Me/Folders/Inbox/Messages/$count?$filter=HasAt

tachments eq true

Get count and selective props

on messages with

attachment(s)

https://outlook.office365.com/v1.0/Me/Folders/Inbox/Messages?$format=application/json

;odata.metadata=none&$select=Subject&$filter=HasAttachments%20eq%20true&$count

=true

Get contact with a given name https://outlook.office365.com/v1.0/Me/Contacts/?$filter=Givenname eq ‘John’

Page 16: Getting started with Office 365 APIs
Page 17: Getting started with Office 365 APIs
Page 18: Getting started with Office 365 APIs

HTML

Page 19: Getting started with Office 365 APIs

2. Click to select service

permissions.

3.Select service

permissions.

4. Click OK to submit your

changes.

1.. Select a service.

http://aka.ms/o365api-getting-started

Page 20: Getting started with Office 365 APIs
Page 21: Getting started with Office 365 APIs
Page 22: Getting started with Office 365 APIs
Page 23: Getting started with Office 365 APIs
Page 24: Getting started with Office 365 APIs

Native Application

Azure AD Authorization

Endpoint

Azure AD Token

Endpoint Office 365 API

Page 25: Getting started with Office 365 APIs

Native Application

Azure AD Authorization

Endpoint

Azure AD Token

Endpoint Office 365 API

Page 26: Getting started with Office 365 APIs
Page 27: Getting started with Office 365 APIs

http://aka.ms/o365api-getting-started

https://

http://aka.ms/mdha

Page 28: Getting started with Office 365 APIs