kennisnet/edutermclient

PHP client for interfacing with Eduterm.

1.1.1 2020-05-25 08:55 UTC

This package is auto-updated.

Last update: 2020-08-25 10:42:21 UTC


README

Build Status

phpEdutermClient

PHP client for interfacing with Eduterm.

usage

Initiate the client with a valid api key, and request with a queryname and optional arguments. The response table will allow you to iterate the response rows.

$eduterm = new EdutermClient("994afb90-2481-4581-a6dd-a02c0de0a9f8");

$eduterm->request("VakLeergebieden", array("onderwijsniveau"=> "bk:512e4729-03a4-43a2-95ba-758071d1b725"));

foreach( $eduterm->response_table as $row ) { 
    echo $row["vakLabel"]."\n";
}

The raw data is also available as well as the json data array (if the response was formatted in json):

  • $eduterm->response_data
  • $eduterm->response_json

eduterm

Assuming you do not know anything about Eduterm, you can find some (Dutch) documentation on the developer wiki. Specifically useful might be the ListQueries operation which provides an overview to the queries to which an API-key has access, but also which arguments are required for each query.