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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	MasterEventId: 0,
	EventClassId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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