(This convenience function is not directly mapped to a remote procedure.)

ls_getAnswerOptions(
  questionID,
  lang,
  lsAPIurl = getOption("lsAPIurl"),
  sessionKey = NULL
)

Arguments

questionID

ID of the question

lang

Language code for the survey language (Note: The API expects one of the survey languages as part of the request rather than falling back to the default language of the survey. However, you can look up that default language using lsGetSurveyProperties())

lsAPIurl

(optional) The URL of the LimeSurvey RemoteControl 2 JSON-RPC API

sessionKey

(optional) Authentication token, see lsGetSessionKey()

Value

A table of answer options

See also

Examples

if (FALSE) { lsGetQuestionProperties("13", "en") lsGetQuestionProperties(questionID = "13", lang = "en", properties = list("mandatory")) }