2017 © Pedro Peláez
 

package unibet-api-client

Bundle to consume unibet API.

image

koxder/unibet-api-client

Bundle to consume unibet API.

  • Thursday, July 19, 2018
  • by cduran
  • Repository
  • 1 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

UnibetBundle

Bundle to handle the UNIBET API. More information here: - https://developer.kindredgroup.com/docs/sportsbook.html, (*1)

Configuration

You should send as argument these vars when you instance the client., (*2)

``` yml app_key [required] = app key of unibet., (*3)

app_id [required] = app id of unibet., (*4)

type_of_bet [optional] = [ 0 = Only request Match Bets, 1 = Get all bets for each match ], (*5)

response [optional] = [ 'json' = Return data in JSON format. 'xml' = Return data in XML format. ], (*6)


## Example ``` php use UnibetApiClient\Client; use UnibetApiClient\NotFoundException; $client = new Client(["app_key" => "secret_app_key", "app_id" => "secret_api_key", "type_of_bet" => 1, "response" => 'json' ]); try{ $bets = $client->getBets('123456677'); print_r($bets); }catch (NotFoundException $e){ print("Resource not found"); }

Test Unit

docker build -t unibet .
docker run -v $(pwd):/app --rm -it unibet vendor/bin/phpunit tests/UnibetClientTest.php

Using docker

docker run -v $(pwd):/app --rm -it composer/composer install

The Versions

19/07 2018

dev-master

9999999-dev

Bundle to consume unibet API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Diaz

template composer package

19/07 2018

v1.2

1.2.0.0

Bundle to consume unibet API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Diaz

template composer package

09/05 2018

v1.1

1.1.0.0

Bundle to consume unibet API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Diaz

template composer package

20/03 2018

v1.0

1.0.0.0

Bundle to consume unibet API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Diaz

template composer package