Skip to content

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

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

Authorizations

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

Parameters

Path Parameters

quizId*
Typestring
Required

Query Parameters

isTest
Typeboolean

Responses

Success.
JSON
{
"currentWaitTime": 10,
"waitTimeAfterFailure": -1,
"lastSessionStatus": 2,
"expirationTime": -1,
"questionCount": 10,
"questionsAnswered": 4,
"isTimed": true,
"confirmed": true
}
Authorization
api_key
Variables
Key
Value
quizId*
isTest
cURL
curl -X GET \
'http://localhost/api/user/current/quizsessions/{quizId}/status'

Samples

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