22
Getting Started with the Office 365 API Speaker: Bjoern H Rapp 15 th November 2014 Host: Matthew Hughes

Getting Started with the Office 365 API

Embed Size (px)

Citation preview

Page 1: Getting Started with the Office 365 API

Getting Started with the Office 365 APISpeaker: Bjoern H Rapp

15th November 2014

Host: Matthew Hughes

Page 2: Getting Started with the Office 365 API

About me

Bjoern H Rapp

Blog: www.sharepointviking.comTwitter: @bjoern_rapp

Page 3: Getting Started with the Office 365 API

AGENDA

What are the Office 365 API’s?

How do Office 365 API’s work?

Setting up your dev environment

Start building your apps

Tools

Resources

Page 4: Getting Started with the Office 365 API

Office 365 APIs

Active Directory

Users

Groups

Exchange & Outlook.com

Mail

Calendar

Contacts

SharePoint

Sites

Client APISites, Lists, Libs

Workflow

Search

Taxonomy

BCS

OneDrive

OneDrive

OneDrive for Business

Page 5: Getting Started with the Office 365 API

How they work

SolutionYour App

.NET, js, HTML, Ruby, Java

fAzure IIS, Apache..

Dev env

Authentication

Your Dev Tools

f f f fXCode Eclipse /Android Studio

Visual Studio REST

iOS O365 SDKAndroid O365

SDKVS O365 SDK

Data

Azure AD Single Sign-On (OAuth 2.0)

REST APIsFiles, Sites Mails, Contacts,

CalendarsUsers and Groups

Azure AD

Page 6: Getting Started with the Office 365 API

Setting up your Office 365 Dev Environment

1

2

3

Get an Office 365 Developer Site

Set up Azure AD for your dev. Site

Get the Tools!

Page 7: Getting Started with the Office 365 API

Get a Site.

If you already have an Office 365 dev site… You are good to go!! Configuring Azure is next…

If you don’t have an Office 365 dev site If you have an MSDN subscription

Redeem your Office 365 Dev Subscription benefit.

If you own one of the following plans Midsize business, Enterprise E1, E3, E4 or K1, Education

A2, A3, A4 or Government, G1, G3, G4 or K1

Create a dev site within your existing subscription!

Start a free 30-days trial or buy a dev subscription with 1 user license

Page 8: Getting Started with the Office 365 API

1. Register your site

http://bit.ly/1uv0f6l

Page 9: Getting Started with the Office 365 API

2. Set up Azure AD

I have a tenant

I don’t have a tenant

1. Log in to your Azure Management portal2. Add an association by using existing Active

Direcory Node3. Remember to close and reopen

1. Log in to Office 365 Admin Center2. Open a new tab and go to

https://account.windowsazure.com/Signup and create a new Azure subscription

3. Verify there’s a directory node with your O365tenant name

Page 10: Getting Started with the Office 365 API

DEMO

Associating an existing Azure tenant with your Office 365 subscription

Page 11: Getting Started with the Office 365 API

3. Get the dev. tools

.NET (WIN 8.1 APPS, WEB )

1. Install Visual Studio2. Install the Office Developer Tools http://bit.ly/1dEXN1G

Get the Office 365 SDK for Android http://bit.ly/1fbsxqDANDROID (ANDROID APPS)

iOS (iPhone, iPad Apps)

Get the Office 365 SDK for iOS (Preview) : http://bit.ly/14ohQ6k

OR CALL THE REST API’s DIRECTLY USING YOUR LANGUAGE AND TOOL OF CHOICE

Page 12: Getting Started with the Office 365 API

I have created my VS Project, now what?

Add Office 365 API’s to your project Choose Add > Connected Service from SM

Register your App

Sign in with your Office 365 Tenant Admin account

Select the Office 365 Service Calendar, Contacts, Mail, Files, Sites, Users and Groups

Set the Permissions Read

Full Access

Set App Properties

Page 13: Getting Started with the Office 365 API

DEMO

Creating a VS Project and adding the Office 365 API’s

Page 14: Getting Started with the Office 365 API

Next Steps

Authenticate your app

Create the Office 365 Discovery Client

Getting an Access Token for Office 365

Creating the client object.

Page 15: Getting Started with the Office 365 API

DEMO

Integrating Office 365 API’s intoan ASP .NET MVC Project.

Page 16: Getting Started with the Office 365 API

Some Tools

API Sandbox

Xamarin

Cordova

Page 17: Getting Started with the Office 365 API

API Sandbox

http://apisandbox.msdn.microsoft.com/

Page 18: Getting Started with the Office 365 API

Xamarin(http://xamarin.com/platform)

Create native iOS, Android and Windows Apps using C#

New templates with support for Visual Studio 2015

Free edition available for Visual Studio Community

20% discount for MSDN subscribers

Page 19: Getting Started with the Office 365 API

Cordova (http://cordova.apache.org/)

A platform for building native mobile apps

Apps based on HTML, CSS and Javascript

Same set of code running on different devices

Page 20: Getting Started with the Office 365 API

References

Office Development: http://dev.office.com

Code samples: http://bit.ly/13EyQVs

Android Office 365 SDK: http://bit.ly/1xqmnRN

REST API Reference: http://bit.ly/10rseIb

Page 21: Getting Started with the Office 365 API

THANK YOU!

Page 22: Getting Started with the Office 365 API

O365EU Sponsors