library billetel
Billetel client
spyrit/billetel
Billetel client
- Monday, May 22, 2017
- by Spyrit_SI
- Repository
- 3 Watchers
- 0 Stars
- 474 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 6 % Grown
Catalogue
Usage
In CLI:, (*1)
composer install
Basic PHP file:, (*2)
<?php
require __DIR__.'/vendor/autoload.php';
use GuzzleHttp\Client;
use Spyrit\Billetel\Client\ArtistsClient;
$url = 'http://api.billetel.fr';
$authorization = 'BASIC aWJvbHYwMjE6MDkwYzc1OTJjMGE4MmUwYjA2MTVjYmJmNGYxZjY5MzQ=';
$desk = 'BOLBOL01';
$httpClient = new Client();
$artistsClient = new ArtistsClient($url, $authorization, $desk, $httpClient);
$artists = $artistsClient->get();