Download document from google drive using Google Drive API in .net

I want to download document from Google Drive.for that i am using Google Drive API.I am very new to Google Drive API so can any one tell me how to downlaod document from google Drive ?

I have try this option https://developers.google.com/drive/manage-downloads#downloading_google_documents but i am getting exception on line

HttpWebRequest request = (HttpWebRequest)WebRequest.Create( new Uri(file.DownloadUrl.ToString()));

authenticator.ApplyAuthenticationToRequest(request); HttpWebResponse response = (HttpWebResponse)request.GetResponse();

like

{"The underlying connection was closed: An unexpected error occurred on a send."}

{"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."}

pls not i am creating desktop application in .net

can any one help me ?

链接地址: http://www.djcxy.com/p/45894.html

上一篇: 如何编写HttpWebRequest响应到浏览器

下一篇: 使用.net中的Google Drive API从谷歌驱动器下载文档