I can't download file from google drive using below mentioned code
string url = https://drive.google.com/uc?export=download&id=XXXX
WebClient client = new WebClient();
client.Credential = new NetworkCredential("XXXX","XXXX");
client.DownloadFile(url,@"D:\\test.xls");
Could you please suggest me to how to download the file using webclient with user credential?
you can download file from google drive using below mentioned Link.
https://developers.google.com/drive/v3/web/manage-downloads
https://www.codeproject.com/Questions/728116/How-to-download-a-file-from-Google-Drive-in-csharp