我无法使用下面提到的代码从谷歌驱动器下载文件
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");
您能否建议我如何使用带有用户凭据的 webclient 下载文件?
最佳答案
您可以使用下面提到的链接从谷歌驱动器下载文件。
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
关于c# - 如何使用c#从谷歌驱动器下载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45500369/