Improve yourself and fight on Chiunzi

[insert_php]
$arrConfig = array(‘CLIENT_ID’ => ‘16186’,’CLIENT_SECRET’ => ‘32915220a8bbba7995fd76e1ddb021b7c2233930′,’REDIRECT_URI’ => ‘http://www.profbike.it/prova.php’,’ACCESS_TOKEN’ => ‘1f4a1590894b96644722c1c3c8fde7a3545a5dc4’);

$objStrava = new Strava($arrConfig);
$output=($objStrava->get(‘segments/2724093/leaderboard’, array(‘club_id’=>’127827′,’date_range’=>’this_year’,’per_page’=>’200′)));
$classifica=$output->entries;
echo ‘

‘;
$dataStart=DateTime::createFromFormat(‘d/m/Y H:i:s’, ’01/01/2018 01:01:01′);
$dataEnd=DateTime::createFromFormat(‘d/m/Y H:i:s’, ’31/10/2018 23:59:59′);
foreach($classifica as &$partecipante) {
$date = new DateTime($partecipante->start_date_local);
if($partecipante->average_hr>0 and $date>=$dataStart and $date<=$dataEnd){ echo '

‘;
}
}
echo ‘

Atleta Tempo Frequenza Cardiaca Data
‘;
echo $partecipante->athlete_name;
echo ‘
‘;
echo gmdate(“H:i:s”, $partecipante->elapsed_time);
echo ‘
‘;
echo $partecipante->average_hr;
echo ‘
‘;
echo $date->format(‘d/m/Y H:i:s’);
echo ‘

‘;
[/insert_php]