我一直在尝试使用Moltin电子商务API V2。我查看了示例文档,通过它完成了任何工作。我来到了开始复制整个文档的地步......等等......没有工作。
我举了一个小例子来使用api加载图像。遵循T的说明,但没有。
这里有谁知道问题是什么? 其次 - 你必须使用Alamofire进行网络请求吗?
答案 0 :(得分:0)
我和Moltin一起发了一张票。
他们现在已将API调用更新为以下内容:
DataTable dt = result.Tables[0];
var filename = Path.GetFileNameWithoutExtension(xmlFile);
// Get the row for the current file
var rowForFile = dt.Rows.Cast<DataRow>()
.SingleOrDefault(r => (string)r["Filename"] == filename);
if (rowForFile != null)
{
XDocument doc = XDocument.Load(xmlFile);
doc.Descendants("publisher-name").First().Value = (string)rowForFile["Publisher"];
doc.Descendants("article-id").First().Value = (string)rowForFile["DOI"];
doc.Save(xmlFile);
}
}