library delacon-api-php
A simple and clean Delacon Api integration in PHP.
sooviet/delacon-api-php
A simple and clean Delacon Api integration in PHP.
- Friday, April 27, 2018
- by sooviet
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
delacon-api-php
A simple and clean Delacon Api integration in PHP., (*1)
Installation
You can install the library by using composer command, (*2)
composer require sooviet/delacon-api-php
Usage
Here is a simple example of how this library can be used., (*3)
$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