This function logs into the LimeSurvey API and provides an access session key. It was adapted by Gjalt-Jorn Peters from a function originally written by Andrew Heiss.

get_session_key(
  username = getOption("lime_username"),
  password = getOption("lime_password")
)

Arguments

username

LimeSurvey username. Defaults to value set in options().

password

LimeSurvey password Defaults to value set in options().

Value

API token

Examples

if (FALSE) {
get_session_key()
}