Reads an attempt's results in question order, mid-lesson too.
GET
/api/v1/attempts/{id}/results
const url = 'https://app.jadwigo.pl/api/v1/attempts/example/results';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.jadwigo.pl/api/v1/attempts/example/resultsNo sign-in: the attempt id is the access, and whoever holds it may use it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”OK.
Media typeapplication/json
object
attempt
required
object
id
required
string
pod_id
required
string
assignment_id
required
string
lesson_version_id
required
string
player_name
required
string | null
mode
required
string
status
required
string
started_at
required
string format: date-time
Example
{ "attempt": { "mode": "real", "status": "in_progress" }, "results": [ { "added": "planned", "ended": "correct" } ]}An error: {error: {type, message}}. The type names the cause, and answers with one status:
- 400:
BadRequest,ServerFieldSupplied - 401:
NotSignedIn,Unauthorized - 404:
NotFound - 409:
AccountMissing,AttemptClaimed,AttemptPreview,AssignmentClosed,AttemptFinished,AttemptNotFinished,AttemptPaused,QuestionNotOpen,TryOutOfOrder,AnswerConflict,EventIdMismatch,WriteOnce - 429:
AnswerLimit - 502:
BankUnavailable
Media typeapplication/json
object
error
required
object
type
required
string
message
required
string
Example
{ "error": { "type": "BadRequest" }}An error: {error: {type, message}}. The type names the cause, and answers with one status:
- 400:
BadRequest,ServerFieldSupplied - 401:
NotSignedIn,Unauthorized - 404:
NotFound - 409:
AccountMissing,AttemptClaimed,AttemptPreview,AssignmentClosed,AttemptFinished,AttemptNotFinished,AttemptPaused,QuestionNotOpen,TryOutOfOrder,AnswerConflict,EventIdMismatch,WriteOnce - 429:
AnswerLimit - 502:
BankUnavailable
Media typeapplication/json
object
error
required
object
type
required
string
message
required
string
Example
{ "error": { "type": "BadRequest" }}