Example #1
0
<?php

require_once 'bootstrap.php';
require_once 'fitbitphp.php';
$fitbit = new FitBitPHP(FITBIT_KEY, FITBIT_SECRET);
$fitbit->setMetric(0);
$status = 0;
if (isset($_GET['status'])) {
    $status = intval($_GET[status]);
} else {
    if ($fitbit->sessionStatus() == 2) {
        $status = 2;
    } else {
        if ($fitbit->sessionStatus() == 1) {
            $status = 3;
        }
    }
}
?>
<!--
// *****************************************************************************
// *
// *
// *          THIS IS THE SOURCE CODE, PLEASE DON'T HACK THIS SITE :)
// *
// *
// *****************************************************************************
-->
<!DOCTYPE html>
<html>
<head>