Limesurvey RC2 API 获取所有问题的答案

Limesurvey RC2 API get all the answers for questions

我想获取调查的所有回复。我找到了 RC2 方法 'export_responses',但它只有关于那些有响应的答案的信息。在我的工具中,我想为那些没有响应的答案显示零响应。

那么我可能需要得到所有问题的答案。我搜索文档并找到 "get_question_properties" 方法。参考 http://api.limesurvey.org/classes/remotecontrol_handle.html#method_get_question_properties

我假设我可以通过在此处为 'aQuestionSettings' 设置适当的值来获得所有问题的答案。上面的文档将 'aQuestionSettings' 指定为数组,但我不确定如何为该方法传递数组。

我的客户端程序是基于'Newtonsoft JSON'的c#。因此,请提出一种更好的方法来获取问题的所有答案,或者请帮助使用 c# 或 java 客户端调用带有参数 "aQuestionSettings" 的 "get_question_properties" 方法。

谢谢

export_responses 与 $sCompletionStatus 到 'all' 以 JSON 格式为您提供所有响应。

你可以像下面这样传递一个数组,

JArray.Parse(@"['gid', 'type', 'answeroptions']")