MintSet / onedrive-sdk-ios

OneDrive SDK for iOS

Home Page:https://dev.onedrive.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork of OneDrive SDK

This fork add ability to get email address of signed user. Original repository link.

1. Installation

###Install via Cocoapods

  • Install Cocoapods - Follow the getting started guide to install Cocoapods.
  • Add the following to your Podfile : pod 'OneDriveSDK', :git => 'https://github.com/MintSet/onedrive-sdk-ios.git', :branch => 'userEmail'
  • Run the command pod install to install the latest OneDriveSDK pod.
  • Add #import <OneDriveSDK/OneDriveSDK.h> to all files that need to reference the SDK.

2. Getting user email

1. Setting your application Id and scopes

[ODClient setMicrosoftAccountAppId:<applicationId> scopes:@[<scopes>, @"openid"]]

@"openid" must be add to array of scopes.

2. Getting an authenticated ODClient object

Get an ODClient as described in original README.md.

3. Getting NSString of signed user

Use property userEmail of ODClient object.

About

OneDrive SDK for iOS

https://dev.onedrive.com

License:Other


Languages

Language:Objective-C 99.6%Language:Ruby 0.3%Language:C 0.2%