Schema #
The schema defines all the fields that exist within a quiz statistics record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context.
id integer |
Statistics Ref ID. Read only Context: |
quiz integer |
Quiz ID. Read only Context: |
user integer |
User ID. Read only Context: |
date string, |
Date. Read only Context: |
answers_correct integer |
Answer correct. Read only Context: |
answers_incorrect integer |
Answer incorrect. Read only Context: |
List Quiz Statistics #
Query this endpoint to retrieve a collection of quiz statistics. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /ldlms/v2/sfwd-quiz/<quiz>/statistics
Example Request #
$ curl https://example.com/wp-json/ldlms/v2/sfwd-quiz/<quiz>/statistics
Arguments #
quiz |
Filter by Quiz ID Required: 1 |
context |
Scope under which the request is made; determines fields present in response. |
page |
Current page of the collection.
Default: |
per_page |
Maximum number of items to be returned in result set.
Default: |
order |
Order sort attribute ascending or descending.
Default: One of: |
orderby |
Sort collection by object attribute.
Default: One of: |
user |
Filter by User ID |
after |
Limit response items after a given ISO8601 compliant date. |
before |
Limit response to items before a given ISO8601 compliant date. |