Ejemplo n.º 1
0
<?php

require_once 'php/nikeplusphp.1.2.5.php';
$nikePHP = new NikePlusPHP(1082023496, true);
?>
<html>
    <P>This is the result of the profile() command</br></P>
    <?php 
$profile = $nikePHP->profile();
//print_r($profile);
print_r($profile["plusLevel"]);
?>
    
    <P>This is the result of the fullRunInfo() command</br></P>
    <?php 
$np = $nikePHP->fullRunInfo();
print_r(count($np));
for ($counter = 0; $counter <= count($np); $counter += 1) {
    $npr = $np[$counter];
    $nprTime = $npr["startTime"];
    ?>
<P>Run-ID: <?php 
    print_r($npr["runId"]);
    ?>
 &nbsp
            Distance: <?php 
    print_r($npr["distance"]);
    ?>
 &nbsp
            Date: <?php 
    print_r(substr($nprTime, 0, 10));