240 likes | 391 Views
The developer’s guide to the SkyDrive API’s. Deepesh Mohnani Program Manager @ deepeshm 3-139. Agenda. What is SkyDrive? Microsoft’s bet on SkyDrive Connecting your apps with SkyDrive Connecting your website with SkyDrive. What is SkyDrive?.
E N D
The developer’s guide to the SkyDrive API’s Deepesh Mohnani Program Manager @deepeshm 3-139
Agenda • What is SkyDrive? • Microsoft’s bet on SkyDrive • Connecting your apps with SkyDrive • Connecting your website with SkyDrive
Powerful cloud storage for docs, photos, and files • Deeply integrated in Windows and Office • Natively accessible across devices and web • Rich sharing and collaboration • Easy to use developer APIs
Deep integration • Integrated with Office today • With Office 2013 you can easily Open and Save documents in SkyDrive as well as share them from the document enabling co-authoringon PC, Web and Mac. • Integrated into Windows and File Explorer • SkyDrive is integrated into Windows through Windows Explorer and File Explorer to provide you offline access to all of your stuff in SkyDrive. • Best cloud for Windows 8 • SkyDrive has a Windows Store app for Windows 8 that allows users to access SkyDrive files and save to SkyDrive across the OS • Windows Phone camera roll • Deeply integrated in to the Windows Phone camera roll and Office Hub. Take a picture and it is automatically backed up into SkyDrive
SkyDrive everywhere Modern devices Files Apps • Connect Windows devices and apps to personal cloud storage so you can work or play seamlessly anywhere • Available across devices • Storage plan that fit your needs • Works with Office so you can organize, work together, and share in new ways • Works with the 3rd party apps that you care about
You can create apps that…. • Create and capture docs or photos • Save news articles to SkyDrive for access later on another PC • Save images from a shopping app to SkyDrive to show off later on a phone or TV • Store drafts for a notes app so users can pick up where they left off on another device • Bring their personal content to your experience • Share pictures from user’s SkyDrive in a social networking app • Insert pictures into a review app • Access pictures and documents from a user’s SkyDrive from anywhere • <Enter your scenario here> • The SkyDrive APIs allow you to read and write any file type to your users’ SkyDrive
Live SDK • What is it? • Access SkyDrive using industry standard protocol like OAuth 2.0 and RESTful web APIs returning JSON responses • Unified cross-platform programming experience • Why use it? • Easy to get started – integrated with Visual Studio • Built on top of the REST APIs • Simplifies authentication and the permission grant experience • Provides a recognizable login experience
Live SDK • https://apis.live.net/v5.0/me/ • friends • contacts • calendar • albums • SkyDrive • profile • picture • friend • friend • contact • contact • event • event • album • album • folder • photo • doc
Live SDK – C# • LiveLoginResult authResult = await authClient.LoginAsync(new List<string>() { "wl.signin", "wl.basic", "wl.skydrive" }); • LiveConnectClient clientFolder = new LiveConnect…..; • clientFolder.GetAsync("/me/albums");
Live SDK - JS • WL.Event.subscribe("auth.login", onLoginComplete); • WL.init(); • WL.login({ • scope: ["wl.signin", "wl.skydrive"], • }); • WL.api({ • path: “me/albums", • method: "get" • } ).then…..
Demo recap • Getting started with Live SDK • Creating a “hello world” app • Getting user profile info • Loading user albums • Loading pictures from an album • Uploading and downloading files
SkyDrive picker • Enable web users to open files from or save files to SkyDrive • File picker light box • Easy to implement: just insert a few lines of JavaScript • Replicating the experience of picking files from SkyDrive in Windows 8 to the web
Demo recap • Integrating the SkyDrive picker to your website • Providing a familiar experience to your users
Supported platforms and many more….. REST
Resources • SkyDrive: http://www.skydrive.com • Live SDK portal : http://dev.live.com • Live SDK download: http://dev.live.com/download • Interactive SDK: http://isdk.dev.live.com • Live SDK source: http://github.com/liveservices/ • Samples: http://github.com/liveservices/liveSDK • Twitter: @deepeshm • Blog : https://blogs.msdn.com/deepm Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions
Resources • Develop: http://msdn.microsoft.com/en-US/windows/apps/br229512 • Design: http://design.windows.com/ • Samples: http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples • Videos: http://channel9.msdn.com/Windows Please submit session evals by using the Build Windows 8 app or at http://aka.ms/BuildSessions