Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Understanding the Snippets sample code

bmitchell287 edited this page Sep 17, 2015 · 5 revisions

The O365 iOS Unified API Snippets Sample

This sample demonstrates several concepts including:

  • Learn how to make REST calls that target data stored in Office 365.
  • Understand how to use the Azure Active Directory Authentication Library (ADAL) for Objective-C.

Connecting to Office 365

The sample provides the code required to display the Office 365 sign in page if there are no tokens available already in the local cache. The sample uses the Azure Active Directory Library for iOS to manage the tokens required for the app to use Office 365 services.

The code that uses the ADAL SDK for Objective C to authenticate with Azure AD is located in the following files (located in Library/Authentication):

  • AuthenticationManager.h
  • AuthenticationManager.m

The ConnectViewController connects to Office 365 using AuthenticationManager.

Snippets

This sample is a repository of unified API code snippets that demonstrate how to work with Office 365 objects like mail, calendar, contacts, files, and user profile information.

The operations seen in this sample are constructed in Snippets Manager (located in Library/Snippets):

  • SnippetsManager.h
  • SnippetsManager.m