This function makes a generic call to the LimeSurvey API. See https://manual.limesurvey.org/RemoteControl_2_API for API documentation. It was adapted by Gjalt-Jorn Peters from a function originally written by Andrew Heiss.

limer_call_limer(method, params = list(), ..., encoding = "utf-8")

Arguments

method

API function to call. Full lis Defaults to value set in options().

params

Optional named list of parameters to pass to the function.

...

Other arguments passed to POST.

encoding

The encoding to use

Value

Results from the API (sometimes plain text, sometimes base64-encoded text).

Examples

if (FALSE) {
limer_call_limer(method = "list_surveys")
limer_call_limer(method = "get_summary",
                 params = list(iSurveyID = 238481,
                               sStatname = "completed_responses"))
}