Download the PHP package netsensia/pinnacle-sports-api without Composer
On this page you can find all versions of the php package netsensia/pinnacle-sports-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download netsensia/pinnacle-sports-api
More information about netsensia/pinnacle-sports-api
Files in netsensia/pinnacle-sports-api
Download netsensia/pinnacle-sports-api
More information about netsensia/pinnacle-sports-api
Files in netsensia/pinnacle-sports-api
Vendor netsensia
Package pinnacle-sports-api
Short Description API Wrapper for the Pinnacle Sports API
License MIT
Package pinnacle-sports-api
Short Description API Wrapper for the Pinnacle Sports API
License MIT
Please rate this library. Is it a good library?
Informations about the package pinnacle-sports-api
pinnacle-sports-api
A PHP Client wrapper for the Pinnacle Sports API (https://www.pinnacle.com/en/api/manual)
You will need an API key to use this client. This is the Base64 value of UTF-8 encoded username:password
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.
Development
Clone the repo and compose
git clone [email protected]: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.
bin/phpspec run --format=pretty -vvv --stop-on-failure
All versions of pinnacle-sports-api with dependencies
PHP Build Version
Package Version
The package netsensia/pinnacle-sports-api contains the following files
Loading the files please wait ....