get Quiz Next Question
Returns the next quiz question including options and attributes.
Example:
val answers = listOf(
listOf("1"),
listOf("1", "2"),
listOf("true"),
listOf("seen"),
)
ConstructorIo.getQuizNextQuestion("quiz-id", answers, "version-id")
Parameters
id of the quiz you want to retrieve
list of answers to send
version identifier for the quiz. version ID will be returned with the first request and it should be passed with subsequent requests. more information can be found: https://docs.constructor.com/reference/configuration-quizzes
session identifier for the quiz. session ID will be returned with the first request and it should be passed with subsequent requests. more information can be found: https://docs.constructor.com/reference/configuration-quizzes
the section the quiz and results come from. defaults to "Products"
Returns the next quiz question including options and attributes utilizing a request object.
Example:
val answers = listOf(
listOf("1"),
listOf("1", "2"),
listOf("true"),
listOf("seen"),
)
val request = QuizRequest.Builder("quiz-id")
.setAnswers(answers)
.setVersionId("version-id")
.build()
ConstructorIo.getQuizNextQuestion(request)
Parameters
the quiz request object