A simple PHP Object Oriented Pinnacle Sports API client
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AjaxExample
.gitignore
Client.php
GetParlayLine-RequestExample.json
LICENSE.txt
README.md
example.php

README.md

PHP PinnacleSports API

A PHP client to use the Pinnacle Sports API

Usage

Please take a look example.php

$client = new PinnacleSports\Client("USERID","PASSWORD");

Just change the USERID and PASSWORD to yours, then it should work.

  • The Request Format: JSON
  • The Response Format: XML or JSON depends on API

Resource

/
  Client.php
    - The PHP client
  example.php
    - Example how to use the client

Ajax example

What's that?

It's an example how to use the PHP client through Ajax.

Resource

AjaxExample/
  index.html
    - Example HTML
  js/jquery.pinnacleSports.js
    - jQuery Plugin
    - It's used in the HTML
  AjaxCall.php
    - It's called by Javascript Ajax GET/POST
    - It calls Client.php
  Credentials.php
    - You need to make it
    - It just has two public variables ($user and $pass)
  AvoidIllegalAccess.php
    - Just made it quickly.  *Test is needed

happy coding :)