Download file from google drive using c# without google API
<p>As per the requirement ,the client is provide with an exe-(which contains the url of file to be downloaded) If we use the google api, we need to provide additional references along with the exe. It is not allowed by the client.</p>

<p>I used the <strong>webclient</strong> to download the file, but its downloading the file with doc type as HTML. My requirement is to download the file form google drive <strong>without using google API</strong>. Is there any way to do that?</p>

<p>I have tried the code as below</p>

<pre><code> WebClient wb = new WebClient();          
 wb.DownloadFile("https://drive.google.com/file/d/0BzpAdEg-KyDjNVVSb0FBOWQ4V0k/view?usp=sharing", @"C:\TFS\test\test.pdf");
</code></pre>

<p>Result as shown below</p>

<p><a href="https://i.stack.imgur.com/YIhlu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YIhlu.png" alt="enter image description here"></a></p>