0
我想知道是否有方法通过LimeSurvey API获取调查状态。我知道有能力激活和停用,但我似乎无法找到任何可以让您找到调查当前状态的内容。有5种状态:LimeSurvey API - 获取调查状态
- 不活跃
- 过期
- 将在未来到期(现在正在运行)
- 将运行在未来
- 现在运行(没有到期日)
活跃状态
我想知道是否有方法通过LimeSurvey API获取调查状态。我知道有能力激活和停用,但我似乎无法找到任何可以让您找到调查当前状态的内容。有5种状态:LimeSurvey API - 获取调查状态
活跃状态
您应该在实际的API文档看看:http://api.limesurvey.org/classes/remotecontrol_handle.html#method_list_surveys
list_surveys()
会做你要求什么,下面只是一个示例:
[{u'active': u'Y', u'startdate': None, u'expires': None, u'surveyls_title': u'test', u'sid': u'925212'}, {u'active': u'N', u'startdate': None, u'expires': u'2016-09-02 00:00:00', u'surveyls_title': u'test2', u'sid': u'655426'}]