我收到错误
远程服务器返回错误:(401) Unauthorized
这是代码。
String sFolderURL = @"https://www.box.com/api/";
string Headers = string.Format("BoxAuth api_key={0}&auth_token={1}", api_key, authToken);
String sParam = "2.0/folders/0";
String sURL = sFolderURL + sParam;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(sURL);
request.Method = "POST";
request.Headers.Add("Authorization", Headers);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();