每次我连接到谷歌驱动器它抛出WebException 401未经授权。oAuth2.0的谷歌驱动器C#WPF
WebClient wC = new WebClient();
var down = wC.DownloadString("https://www.googleapis.com/drive/v2/about?includeSubscribed=true&key=[api-key]");
JObject o = JObject.Parse(down);
Console.WriteLine("Name, " +o["name"]);
Console.ReadLine();
我想创建C#桌面应用程序。