0
下载一排附件我指以下链接使用智能表API C#
,并使用以下行 -
public void downloadAttachment(Attachment attach)
{
SmartsheetRequest getAttachment = new SmartsheetRequest { callURL = "/attachment/" + attach.Id, method = "GET", contentType = "application/json" };
var jsonGetAttachment = getAttachment.MakeRequest("null");
getAttachment.DownloadAttachment(jsonGetAttachment["url"], jsonGetAttachment["sizeInKb"], jsonGetAttachment["name"]);
}
下载附件。
但以下行
Stream responseStream = request.GetResponse().GetResponseStream();
在 “makeRequest的” 方法
给出 “远程服务器返回一个错误:(404)未找到”。错误。