2017 © Pedro Peláez
 

library skybet-php-api

A simple PHP implementation for Skybet's JSON API

image

sharapov/skybet-php-api

A simple PHP implementation for Skybet's JSON API

  • Wednesday, May 17, 2017
  • by sharapov-outsource
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Skybet PHP API

This is a simple PHP implementation for Skybet API., (*1)

Installation

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/skybet-php-api": "dev-master"
    }
}

How to use it?

To initialize the API, you'll need to pass an array with your application user., (*3)

require_once "../vendor/autoload.php";

$api = new \Sharapov\SkybetPHP\SkybetAPI( [
                                            'api_user'  => 'test',
                                          ] );

// Retrieve available event classes
$response = $api->classes()->get();

// Retrieve events list on certain event class
$response = $api->football()->get();

// Retrieve event document by event id
$response = $api->event('20739612');

// Retrieve market for event by id
 $response = $api->event('20739612', true)->market('86571269')->get();

print '

';
print_r( $response );
print '
';

The Versions

17/05 2017

dev-master

9999999-dev http://sharapov.biz/

A simple PHP implementation for Skybet's JSON API

  Sources   Download

GPL-3.0

The Requires

  • php ^5.0

 

api json rest betting odds bookmaker skybet