我正在使用Wolfram | Alpha.Net-2.0 API的完整实现与我的ASP MVC APP通信。幸运的是,我能够提交请求并获得结果,但是据我所知,Wolfram Alpha API具有ShowStepsApi,可用于提取代数问题的步骤。供参考,这是我的代码:
public ActionResult Index2()
{
// Test the newer library here
WolframAlphaNET.WolframAlpha wolfram = new WolframAlphaNET.WolframAlpha("JV35XH-QT3VLP5KEG");
QueryResult results = wolfram.Query("solve 3x-7=11");
List<Pod> pods = results.Pods;
List<string> strList = new List<string>();
Pod primaryPod = results.GetPrimaryPod();
if (primaryPod != null)
{
strList.Add(primaryPod.Title);
if (primaryPod.SubPods.HasElements())
{
foreach (SubPod subPod in primaryPod.SubPods)
{
strList.Add(subPod.Title);
strList.Add(subPod.Plaintext);
}
}
}
return View();
}
当我调试查看SubPods
值时,我找不到任何纯文本或图像格式的步骤!