title: How to download file from google drive using c#
body: <p>I can't download file from google drive using below mentioned code</p>
  
  <pre><code>string url = https://drive.google.com/uc?export=download&amp;id=XXXX
  WebClient client = new WebClient();
  client.Credential = new NetworkCredential("XXXX","XXXX");
  client.DownloadFile(url,@"D:\\test.xls");
  </code></pre>
  
  <p>Could you please suggest me to how to download the file using webclient with user credential?</p>