Office 365 API – Authentication & Setup

In our last article, we took a 10,000 foot view of what Office 365 has to offer. The article also made note of the Office 365 API, which enables developers to integrate with and use their users’ Office 365 data.

Before we can access the users’ data, we’ll need to authenticate our Office app and make sure it has the required permissions to access said data. This is accomplished by using single sign-on with Azure AD. The Office 365/Azure AD authentication uses OpenID Connect and OAuth 2.0, which is an open standard and if you’ve ever authenticated using either Facebook, Twitter or a Google account, the process of authenticating with Azure AD will be very familiar to you.

For the purpose of this article, we’ll only focus on authenticating using the new Office 365 Unified API. Although it is still only in preview, it will very shortly become the de facto method to access Office 365 data.

Read more at Add-in Express.

To see all my recent Add-in Express blog posts visit my author page.

1 Comment

  • In earlier versions of Visual Studio, you could create an Outlook task in code like this –

    Imports System.Runtime.InteropServices
    ‘ …
    Private Sub CreateTaskItemUsingCreateItemFromTemplate( _
    ByRef Application As Outlook._Application)
    Dim task As Outlook.TaskItem = Nothing
    task = Application.CreateItemFromTemplate(“D:\\Eugene Astafiev.oft”)
    task.Subject = “change oil in the car”
    Catch ex As Exception
    If Not IsNothing(task) Then Marshal.ReleaseComObject(task)
    End Try
    End Sub

    How do you do this in Visual Studio 2015? It does not recognize Outlook._Application

    Many thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: