PHP code example of sportic / itra-client

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

    

sportic / itra-client example snippets




$client = new \Sportic\Itra\ItraClient();
$client->setAuthToken('ITRA_AUTH_TOKEN');

$result = $client->runnerlist()->find(\Sportic\Itra\RunnerList\RunnerListRequest::fromArray([
            'RunnerID' => 2704,
        ]));
        
$athlete = $return->getFirstResult();
echo $athlete->getId();
echo $athlete->getFirstName();
echo $athlete->getLastName();
echo $athlete->getPerformanceIndex();