sportic / itra-client
Itra API Client implementation for php
1.0.2
2024-01-07 15:47 UTC
Requires
- php: ^7.4|^8.0
- bytic/collections: ^1.0
- bytic/rest-client: dev-master|dev-develop|^1.0
- nyholm/psr7: ^1.8
Requires (Dev)
- bytic/phpqatools: ^1.0
- symfony/dotenv: ^5.0|^6.0
README
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();