示例#1
0
<?php

require_once '../vendor/autoload.php';
$arrCredentials = array('username' => 'xxx', 'password' => 'xxx', 'identifier' => '1');
try {
    $objGarminConnect = new \dawguk\GarminConnect($arrCredentials);
    $objResults = $objGarminConnect->getExtendedActivityDetails(593520370);
    print_r($objResults);
} catch (Exception $objException) {
    echo "Oops: " . $objException->getMessage();
}
示例#2
0
<?php

require_once '../vendor/autoload.php';
$arrCredentials = array('username' => 'xxx', 'password' => 'xxx');
try {
    $objGarminConnect = new \dawguk\GarminConnect($arrCredentials);
    $objResults = $objGarminConnect->getActivityList();
    print_r($objResults);
} catch (Exception $objException) {
    echo "Oops: " . $objException->getMessage();
}