Get survey groups

lsListGroups(
  surveyID,
  lang = NULL,
  lsAPIurl = getOption("lsAPIurl"),
  sessionKey = NULL
)

Arguments

surveyID

ID of the survey containing the groups

lang

(optional) Language code for the language -- if not given, due to a bug in the API, instead of just the base language of the particular survey, all languages are returned

lsAPIurl

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

sessionKey

(optional) Authentication token, see lsGetSessionKey()

Value

The ids and all attributes of all survey groups

References

https://api.limesurvey.org/classes/remotecontrol_handle.html#method_list_groups

Examples

if (FALSE) { lsListGroups("123456") lsListGroups("123456", lang = "fr") }