API Quick Reference
Developers can use the following API calls to get public information in JSON format from the Cricket Statz online service. Your database league id can be found at the bottom of the setup menu in the admin panel or you can use the getleagueid API call below.
Get a list of Grounds/Venues (substitute league id):
https://www2.cricketstatz.com/ss/getgrounds.aspx?league=11
Get a list of Grades/Divisions (substitute league id):
https://www2.cricketstatz.com/ss/getgrades.aspx?league=11
Get a list of Umpires & Scorers (substitute league id):
https://www2.cricketstatz.com/ss/getofficials.aspx?league=11
Get a list of Players (substitute league id):
https://www2.cricketstatz.com/ss/getplayers.aspx?league=11
Get a list of Fixtures (substitute league id):
https://www2.cricketstatz.com/ss/getfixtures.aspx?league=11
Get a list of Teams (substitute league id):
https://www2.cricketstatz.com/ss/getteams.aspx?league=11
Get a list of Players in a Team (substitute league id and team id):
https://www2.cricketstatz.com/ss/getteamplayers.aspx?league=11&team=14
Get a list of Howout Types
https://www2.cricketstatz.com/ss/gethowouts.aspx
Get the League ID (apptleague field) for a given User
HEADER:
Content-type: application/json;charset=utf-8
Authorization: Basic [base64encoded(username:password)]
https://www2.cricketstatz.com/ss/getleagueid.aspx
(note this may return multiple entries where the user has more than 1 appointment)