PHP code example of tvup / eloverblikapi

1. Go to this page and download the library: Download tvup/eloverblikapi 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/ */

    

tvup / eloverblikapi example snippets




$eloverblik = new Tvup\ElOverblikApi\ElOverblikApi();
//$eloverblik->setDebug(true);

$eloverblik->token('YOUR_REFRESH_TOKEN');

$firstMeteringPoint = $eloverblik->getFirstMeteringPoint();
$response = $eloverblik->getHourTimeSeriesFromMeterData('2022-01-01', '2022-01-31');

print_r($response);