yoerioptr/tabt-api-client

Helper library for the TabT API by Frenoy. For more information visit 'http://api.frenoy.net/'

v2.0.7 2022-07-29 10:14 UTC

This package is auto-updated.

Last update: 2024-04-29 03:38:56 UTC


README

The TabT API Client is a helper library for Frenoy's TabT API

Setup

Basic setup to get you started using the client.

First of all, install the package using Composer

composer require yoerioptr/tabt-api-client

Instantiate the TabT Api Client as shown below

use Yoerioptr\TabtApiClient\Client\Client;
use Yoerioptr\TabtApiClient\Entries\CredentialsType;
use Yoerioptr\TabtApiClient\Tabt;

// Instantiate the client
$client = new Client();

// Optionally you can provide your credentials
$credentials = new CredentialsType('username', 'password');
$client->setCredentials($credentials);

// Instantiate the TabT Api Client
$tabt = new Tabt($client);

Making Requests

Executing requests makes use of repositories, which can easily be accessed from the TabT helper class.

$testResponse = $tabt->test()->info();

All usable requests can be found here