version 5.6
Multi Account Support Use the login flow as usual, but in the end logout, saving the session.
var session = ....
var authClient = new LiveAuthClient("xxxx");
var res = await authClient.InitializeWithLocalAsync(session, scopes);
var client = new LiveConnectClient(authClient.Session);
- Introduction
The Live SDK for Windows and Windows Phone library is intended to help developers to easily integrate OneDrive and Outlook.com contacts into their Windows Runtime apps (HTML and XAML).
The Live SDK enables access to users’ identity profile info and allows your apps to:
- Upload and download photos, videos, documents, and other files in OneDrive
- Personalize your users’ experience
- Take advantage of single sign-on using Microsoft Account in Windows 8.1 and Windows Phone 8.1
- Create, read, and update contacts, calendars, and events in Outlook.com
- Reference the SDK
- Install the Live SDK from the download site
- Open your app's project in Visual Studio
- In Solution Explorer, right-click References > Add Reference
- For Windows Runtime HTML apps: Click Windows > Extension SDKs and select both Live SDK and Windows Library for JavaScript 2.1. Further details available here
- For Windows Runtime XAML apps: Click Windows 8.1 or Windows Phone 8.1 > Extensions and select Live SDK. Further details available here
- Documentation
Visit: http://dev.onedrive.com.
- Sample code
- Includes samples for HTML and XAML apps for Windows and Windows Phone
- API Explorer: Authenticates user and uploads and downloads files
- 3 samples that demonstrate authentication and OAuth with ASP.Net or PHP
- 5 samples that demonstrate authentication and core concepts (upload, download, etc)