auto_scoring
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| auto_scoring [2022/01/25 12:46] – yves | auto_scoring [2022/01/25 12:52] (current) – yves | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Retrieving scoring results (automation) ===== | ===== Retrieving scoring results (automation) ===== | ||
| - | For data wrangling purposes, it is useful to automate the retrieve of a training session' | + | For [[https:// |
| + | {{ : | ||
| The formal syntax is: | The formal syntax is: | ||
| - | '' | + | '' |
| For convenient parsing, we recommend setting REPORT_TYPE to 2 (CSV, computer-readable, | For convenient parsing, we recommend setting REPORT_TYPE to 2 (CSV, computer-readable, | ||
| - | Note that the above URL cannot be invoked automatically from within any programming environment. PHP' | + | Note that the above URL cannot be invoked automatically from within any programming environment. |
| - | The call requires cookie to authenticate properly, because it is a view controller. The php function '' | + | The call requires cookie to authenticate properly, because it is a view controller. The php function '' |
| For this to work properly via php you have to use cUrl with cookies enabled: | For this to work properly via php you have to use cUrl with cookies enabled: | ||
| - | '' | + | <code php> |
| + | <?php | ||
| function file_get_contents_curl($url) { | function file_get_contents_curl($url) { | ||
| $ckfile = tempnam ("/ | $ckfile = tempnam ("/ | ||
| Line 41: | Line 43: | ||
| $trainingsession = 66 | $trainingsession = 66 | ||
| - | $url = " | + | $url = " |
| // retrieve data | // retrieve data | ||
| $tsData = file_get_contents_curl($url); | $tsData = file_get_contents_curl($url); | ||
| } | } | ||
| - | ?>'' | + | ?> |
| + | </ | ||
auto_scoring.1643111204.txt.gz · Last modified: by yves
