Thursday, May 21, 2015

O365 - IOS - Swift - Unified API - Display the list of users from the tenant

After my recent switch over to Mac as my main laptop for O365 / SharePoint development, Finally I got an IOS native app running using the O365 IOS SDK and Swift. Nearly after 15 years of development using Microsoft Technologies and Tools, the mobile app development using XCode and Swift rekindles my memory of learning the Object Oriented Programming using C and C++.

Referenced Article:

Step 1 : Register the app on the Azure AD 

Step 2: Create a Single View application in the XCode

Step 3 : Setup the Pod file to install the following

  • pod 'ADALiOS', '~> 1.2.2'

  • pod 'Office365', '~> 0.9.1'  (The previous versions does not have the unified api end point).

  • run "pod install" on the terminal or "pod update" if you want to upgrade to the latest. (The below screen shot shows the output of the update - because I installed the old version first and updated to the latest).

Step 4: Create the Header file as below

  • Include the ADAuthenticationContext.h, office365_odata_base.h and office365_graph_sdk.h (graph - unified api)

Step 5: Initialise the Azure AD app details

Step 6: Initialise the Authentication Context

Step 7: Implement the function to get the list of users using the unified api

Step 8 : Build & Run


by Balamurugan Kailasam via Everyone's Blog Posts - SharePoint Community

1 comment:

  1. Swift is a robust and intuitive programming language created by Apple for building apps.Employ the service of Volive developer and lets turn your app into someone great ahead of other competitors with the use of Swift.
    swift Mobile app Development

    ReplyDelete