首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

浅谈Google Drive 推出了云层存储的web API配置

2013-03-17 
浅谈Google Drive 推出了云端存储的web API配置转载请注明原文出自:http://blog.csdn.net/lizhiliang06/ar

浅谈Google Drive 推出了云端存储的web API配置

转载请注明原文出自:http://blog.csdn.net/lizhiliang06/article/details/8667073,里面有更多精彩文章

Google最近推出了云端存储的web API,并且提供了Demo,想做相关方面开发的程序猿有福了,

我们可以从google 提供的地址:https://developers.google.com/drive/examples/ 上下载何种语言的Demo source code,

里面也有每种demo的开发指导,

这里也讲解一下我的操作过程,还有得到的实际效果,

下面基本上用图来说明讲解,这样会简单明了,

(1)首先要有个Google账号

(2)Google API地址https://code.google.com/apis/console/#project:553547969563

(3)进入api选择services浅谈Google Drive 推出了云层存储的web API配置

(4)点击API Access,配置各项如下图

浅谈Google Drive 推出了云层存储的web API配置

(5)进入Driver SDK配置如下图

浅谈Google Drive 推出了云层存储的web API配置

(6).NETdemo配置代码

namespace DrEdit.Models{    internal static class ClientCredentials    {                    /// <summary>                    /// The OAuth2.0 Client ID of your project.                    /// </summary>        public static readonly string CLIENT_ID = "xxxxxx.apps.googleusercontent.com" ; //"[[YOUR_CLIENT_ID]]";
                    /// <summary>                    /// The OAuth2.0 Client secret of your project.                    /// </summary>        public static readonly string CLIENT_SECRET = "xxxxxx" ; //"[[YOUR_CLIENT_SECRET]]";
        /// <summary>        /// The OAuth2.0 scopes required by your project.        /// </summary>        public static readonly string[] SCOPES = new String[]        {            "https://www.googleapis.com/auth/drive.file" ,            "https://www.googleapis.com/auth/userinfo.email" ,            "https://www.googleapis.com/auth/userinfo.profile" ,            "https://www.googleapis.com/auth/drive.install"        };
                    /// <summary>                    /// The Redirect URI of your project.                    /// </summary>        public static readonly string REDIRECT_URI = "http://127.0.0.1" ;  //"[[YOUR_REDIRECT_URI]]";    }}(7)得到的效果

浅谈Google Drive 推出了云层存储的web API配置浅谈Google Drive 推出了云层存储的web API配置

到这里已经是运行demo成功了.

转载请注明原文出自:http://blog.csdn.net/lizhiliang06/article/details/8667073,里面有更多精彩文章

热点排行