TBS Apps API

<back to all web services

PlayerStatsRequest

The following routes are available for this service:
GET,POST/PlayerStatsGet Player Stats.Get Player Stats.
PlayerStatsRequest Parameters:
NameParameterData TypeRequiredDescription
MasterEventIdbodyintYesMaster Event Id
EventClassIdbodyintYesEvent Class Id
PlayerStatsResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<PlayerStat>No
ErrorformstringNo
PlayerStat Parameters:
NameParameterData TypeRequiredDescription
PlayerNameformstringNo
PlayerStatsformList<PlayerStatInfo>No
PlayerStatInfo Parameters:
NameParameterData TypeRequiredDescription
DSGMatchIDformintNo
DSGPeopleIDformintNo
StatformstringNo
StatValueformstringNo
MatchStartTimeUTCformDateTimeNo
HomeTeamformstringNo
AwayTeamformstringNo
PlayerTeamformstringNo
HomeTeamScoreformstringNo
AwayTeamScoreformstringNo
HomeTeamAbbreviatedNameformstringNo
AwayTeamAbbreviatedNameformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PlayerStats HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"MasterEventId":0,"EventClassId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Items":[{"PlayerName":"String","PlayerStats":[{"DSGMatchID":0,"DSGPeopleID":0,"Stat":"String","StatValue":"String","MatchStartTimeUTC":"0001-01-01T00:00:00.0000000Z","HomeTeam":"String","AwayTeam":"String","PlayerTeam":"String","HomeTeamScore":"String","AwayTeamScore":"String","HomeTeamAbbreviatedName":"String","AwayTeamAbbreviatedName":"String"}]}],"Error":"String"}