wp7调用SkyDrive API功能概述

来源:互联网 发布:怎么搜索淘宝达人账号 编辑:程序博客网 时间:2024/06/04 03:47

 Live Connect概述

Live SDK入门
SkyDrive API

Live Connect让app、网站、移动设备可以更容易地利用Live ID、SkyDrive、Hotmail 和 Messenger 来交互。
组成部分:
Services exposed via OAuth/REST/XMPP endpoints;
Libraries for the Web, Windows, Windows Phone;
Live SDK provides integration with Visual Studio。

使用 Live SDK 准备工作:
1. 让app支持云端服务;
2. 下载和安装 Live SDK;
3. 在app中使用JavaScript类库。

一个简单例子
要让App使用SkyDrive的API,需要向WindowsLive注册App。
注册地址为:https://manage.dev.live.com/build?wa=wsignin1.0

SkyDrive API功能概述 - 乂乂 - 一个人,一支烟  ·~~

 
下载Live SDK:http://www.microsoft.com/download/en/details.aspx?id=28195

SkyDrive API功能概述 - 乂乂 - 一个人,一支烟  ·~~

至此,App使用SkyDrive的API准备工作完成。

SkyDrive API功能概述 - 乂乂 - 一个人,一支烟  ·~~
 
SkyDrive API功能概述 - 乂乂 - 一个人,一支烟  ·~~

 

SkyDrive相关API:
浏览文件系统;(Navigating the file system)
浏览图片;(Viewing photos)
播放音频文件;(Playing audio files)
播放视频;(Playing videos)
内嵌的Office文档;(Embedding Office documents)
下载文件;(Downloading files)
上传文件;(Uploading files)
删除文件;(Deleting files)
分享文件外链;(Sharing links to content)

一个例子(浏览文件夹/文件)
一个例子(内嵌Office文档)
一个例子(分享文件)

以上内容中的截图来自Steve Gordon在微软开发者大会上的主题演讲:
The complete developer's guide to the SkyDrive API
视频地址:http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-134C