TBS Apps API

<back to all web services

PreMatchStatsRequest

The following routes are available for this service:
GET,POST/RecentResultsGet recent match results of the selected team.Get recent match results of the selected team.
PreMatchStatsRequest Parameters:
NameParameterData TypeRequiredDescription
MasterEventIdbodyintYesMaster Event Id
TeamAbodyStringYesTeam Name for which the recent matches are queried
TeamBbodyStringNoTeam Name for recent Head2Head stats with TeamA
PageSizebodyintNoPage size. Default 5.
PreMatchStatsResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<RecentResult>No
ErrorformstringNo
RecentResult Parameters:
NameParameterData TypeRequiredDescription
TeamformstringNo
TeamShortNameformstringNo
TeamTBSNameformstringNo
TeamAbbreviatedNameformstringNo
OpponentformstringNo
OpponentShortNameformstringNo
OpponentTBSNameformstringNo
OpponentAbbreviatedNameformstringNo
RoundformstringNo
TeamScoreformstringNo
OpponentScoreformstringNo
VenueTypeformstringNo
DateformstringNo
ResultformstringNo
GameWeekformstringNo

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

HTTP + CSV

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

POST /RecentResults HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"MasterEventId":0,"TeamA":"String","TeamB":"String","PageSize":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Items":[{"Team":"String","TeamShortName":"String","TeamTBSName":"String","TeamAbbreviatedName":"String","Opponent":"String","OpponentShortName":"String","OpponentTBSName":"String","OpponentAbbreviatedName":"String","Round":"String","TeamScore":"String","OpponentScore":"String","VenueType":"String","Date":"String","Result":"String","GameWeek":"String"}],"Error":"String"}