Skip to content

GET /api/quiz/sessions/{foodsaverId}

GET
/api/quiz/sessions/{foodsaverId}

Authorizations

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

Parameters

Path Parameters

foodsaverId*
Typestring
Required

Responses

Success.
JSON
[
{
"quiz": {
"id": 1,
"name": "Foodsaver Quiz",
"description": "This is the description of this quiz.",
"isDescriptionHtmlEncoded": true,
"maxFailurePointsToSucceed": 2,
"questionCountTimed": 10,
"questionCountUntimed": 20
},
"sessions": [
{
"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
foodsaverId*
cURL
curl -X GET \
'http://localhost/api/quiz/sessions/{foodsaverId}'

Samples

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