c# - 如何使用c#从谷歌驱动器下载文件

标签 c# .net webclient

我无法使用下面提到的代码从谷歌驱动器下载文件

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 下载文件?

最佳答案

关于c# - 如何使用c#从谷歌驱动器下载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45500369/

相关文章:

c# - 在 XAML x :Type markup 中使用泛型类型

c# - 遍历 ListView 数据

C#:Form.AcceptButton 的问题

c# - 在 C# 中从 FTP 中删除文件

java - 使用网络客户端发布数据

c# - 使用 linq to xml 从 XML 文档中获取 XElements 列表的 XElements 列表

c# - 将现有 .NET 项目部署到 Bluemix

.net - 如何使用WebDav来匹配dav :href to Outolook Interop href value

c# - DotPeek 无法正确反序列化 dll

c# - 通过代理的 HTTPS 不起作用