API – Complex quizzing report
-
To get the complex quiz report you need to send GET request to the following URI
https://your-domain.davintoo.com/api/rest.php/tasks-reports?page=1&count=10&filter[taskId]={id}&filter[complexTestId]={id}&sorting[task_finish_date]=desc&action=get-complex-test-report&complexTestId={id} -
The request must contain the headings Content-Type: application/json;charset=UTF-8 and Authorization: Bearer xxxxxx.
Request example:
curl 'https://your-domain.davintoo.com/api/rest.php/tasks-reports?page=1&count=10&filter[taskId]=30705&filter[complexTestId]=281&sorting[task_finish_date]=desc&action=get-complex-test-report&complexTestId=281' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'
instead of 30705 - task id
instead of 281 you need to set the complex quiz id.
The request supports filtering by the following fields:
- position - Position
- city - City
- department - Department
- tags - tag
- task_finish_date - task completion date
Answer
- In case of successful request (HTTP response code - 200), the following result will be returned:
- results arraydata
- pagination object (information about the number of pages, the current page, the number of results)pager
- In case of error (HTTP response code - 400) it returns JSON object with error information