Simple class for making requests to the O6 Web Properties Data Request API.
use o6web\DataRequestApi\DataRequestApi;
$dataRequestApi = new DataRequesApi($root_url, $token);
$dataRequestApi->request('GET', 'request/path', ['arg' => 'value']);Simply add a dependency on o6web/data-request-api to your composer.json file if you use Composer to manage the dependencies of your project:
composer require o6web/data-request-apiAlthough it's recommended to use Composer, you can actually include the file(s) any way you want.
DataRequestApi is MIT licensed.