我想使用c#从onedrive下载文件。
string arquivo = "file.921a7aadee6beb12.921A7AADEE6BEB12!7177";
string pastaOrigem = "C:\\Users\\Usuario\\Desktop\\Pasta Origem";
StringBuilder requestDownload = new StringBuilder();
requestDownload.AppendFormat("https://apis.live.net/v5.0/{0}/content?access token={1}", arquivo, propriedades["access_token"]);
WebClient myWebClientDownload = new WebClient();
myWebClientDownload.DownloadFile(requestDownload.ToString(), pastaOrigem);
答案 0 :(得分:0)