Skip to content

GET /api/user/current/quizsessions/{quizId}/results

GET
/api/user/current/quizsessions/{quizId}/results

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

quizId*
Typestring
Required

Query Parameters

isTest
Typeboolean

Responses

Success.
JSON
{
"id": 0,
"foodsaverId": 0,
"quizId": 0,
"status": 0,
"questionsAnswered": 0,
"startTime": "string",
"endTime": "string",
"failurePoints": 0,
"maxFailurePointsToSucceed": 0,
"isTimed": true,
"isTest": true
}
Authorization
api_key
Variables
Key
Value
quizId*
isTest
cURL
curl -X GET \
'http://localhost/api/user/current/quizsessions/{quizId}/results'

Samples

cURL
curl -X GET http://localhost/api/user/current/quizsessions/{quizId}/results
JavaScript
fetch("http://localhost/api/user/current/quizsessions/{quizId}/results")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current/quizsessions/{quizId}/results");
Python
import requests
response = requests.get("http://localhost/api/user/current/quizsessions/{quizId}/results")
print(response.json())