-
Notifications
You must be signed in to change notification settings - Fork 3
Understanding the Snippets sample code
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.
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.
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