dev-master
9999999-dev http://sharapov.biz/A simple PHP implementation for Unibet's JSON API
GPL-3.0
The Requires
- php ^5.6 || ^7.0
- guzzlehttp/guzzle ~5.0
api json rest betting odds bookmaker unibet
A simple PHP implementation for Unibet's JSON API
This is a simple PHP implementation for Unibet API., (*1)
You can either get the files from GIT or you can install the library via Composer. To use Composer, simply add the following to your composer.json
file., (*2)
{ "require": { "sharapov/unibet-php-api": "dev-master" } }
To initialize the API, you'll need to pass an array with your application key
and application_id
., (*3)
require_once "../vendor/autoload.php"; $api = new \Sharapov\UnibetPHP\UnibetAPI( [ 'app_id' => 'APP_ID', 'app_key' => 'APP_KEY' ] ); // Request examples // /sportsbook/groups $response = $api->sportsbook()->groups()->json(); // /sportsbook/betoffer/event/{eventId}.{responseformat} $response = $api->sportsbook()->betoffer()->event('EVENT_ID')->json(); // More examples are on https://developer.unibet.com/docs print ''; print_r( json_decode($response->getBody()->getContents()) ); print '';
A simple PHP implementation for Unibet's JSON API
GPL-3.0
api json rest betting odds bookmaker unibet