PHP code example of sooviet / delacon-api-php
1. Go to this page and download the library: Download sooviet/delacon-api-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sooviet / delacon-api-php example snippets
composer
$request = new \Delacon\Models\DelaconRequest();
$request->setDateFrom('2019-08-01'); // set date from parameter
$request->setDateTo('2019-08-14'); //set date to parameter
$delaconApi = new \Delacon\Application\XmlApplication($request, 'authentication', env('delacon_api_key'));
$response = $delaconApi->reports('json'); // gets json report data