sportic/itra-client

Itra API Client implementation for php

1.0.2 2024-01-07 15:47 UTC

This package is auto-updated.

Last update: 2024-05-07 16:35:51 UTC


README

Latest Stable Version Total Downloads License Code Coverage

Composer

You can install the bindings via Composer. Run the following command:

composer require sportic/itra-client 

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Getting Started

Simple usage looks like:

$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();