2017 © Pedro Peláez
 

library pinnacle-sports-api

API Wrapper for the Pinnacle Sports API

image

netsensia/pinnacle-sports-api

API Wrapper for the Pinnacle Sports API

  • Monday, March 5, 2018
  • by Chrismo2012
  • Repository
  • 1 Watchers
  • 0 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 3 % Grown

The README.md

pinnacle-sports-api

A PHP Client wrapper for the Pinnacle Sports API (https://www.pinnacle.com/en/api/manual), (*1)

You will need an API key to use this client. This is the Base64 value of UTF-8 encoded username:password, (*2)

Add to project using Composer

composer require "netsensia/pinnacle-sports-api:1.0.0"

Usage

$client = new Client($apiKey);
$sports = $client->getSports();
$leagues = $client->getLeagues(33); // 33 is the id for tennis, as obtained from getSports()
$fixtures = $client->getFixtures(33);
$odds = $client->getOdds(33);

A full list of available calls can be found by examining the ClientSpec.php file which contains the spec tests. Additional parameters can be seen in the Client.php file., (*3)

Development

Clone the repo and compose

git clone git@github.com:netsensia/pinnacle-sports-api
cd pinnacle-sports-api
php composer.phar install

Run the tests

Create a file called .apiKey in the root of the project and add your api key to it., (*4)

bin/phpspec run --format=pretty -vvv --stop-on-failure

The Versions

05/03 2018

dev-master

9999999-dev

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

05/03 2018

v0.0.7

0.0.7.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

16/11 2016

v0.0.6

0.0.6.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/11 2016

v0.0.5

0.0.5.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/11 2016

v0.0.3

0.0.3.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/11 2016

v0.0.4

0.0.4.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/11 2016

v0.0.2

0.0.2.0

API Wrapper for the Pinnacle Sports API

  Sources   Download

MIT

The Requires

 

The Development Requires

10/11 2016

v0.0.1

0.0.1.0

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires