TBS Apps API

<back to all web services

MatchScoreRequest

Gets match score.Gets match score.
MatchScoreRequest Parameters:
NameParameterData TypeRequiredDescription
BetIdbodyintYesBet Id
MatchScoreResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<MatchScore>No
MatchScore Parameters:
NameParameterData TypeRequiredDescription
MasterEventIdformintNo
DSGMatchIdformintNo
HomeTeamformstringNo
AwayTeamformstringNo
HomeTeamAbbreviatedformstringNo
AwayTeamAbbreviatedformstringNo
CurrentPeriodformstringNo
ClockformstringNo
ClockTypeformstringNo
IsClockRunningformboolNo
DisciplineNameformstringNo
PossessionformstringNo
DSGMatchStatusformstringNo
PeriodScoresformList<PeriodScore>No
PlayerScoresformList<PlayerScore>No
PeriodScore Parameters:
NameParameterData TypeRequiredDescription
PeriodTypeformstringNo
PeriodDisplayNameformstringNo
HomeTeamScoreformstringNo
AwayTeamScoreformstringNo
PlayerScore Parameters:
NameParameterData TypeRequiredDescription
PlayerScoreTypeformstringNo
PlayerNameformstringNo
ScoreformstringNo

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: MatchScoreRequest

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<MatchScoreRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <BetId>0</BetId>
</MatchScoreRequest>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<MatchScoreResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
  <Items>
    <MatchScore>
      <AwayTeam>String</AwayTeam>
      <AwayTeamAbbreviated>String</AwayTeamAbbreviated>
      <Clock>String</Clock>
      <ClockType>String</ClockType>
      <CurrentPeriod>String</CurrentPeriod>
      <DSGMatchId>0</DSGMatchId>
      <DSGMatchStatus>String</DSGMatchStatus>
      <DisciplineName>String</DisciplineName>
      <HomeTeam>String</HomeTeam>
      <HomeTeamAbbreviated>String</HomeTeamAbbreviated>
      <IsClockRunning>false</IsClockRunning>
      <MasterEventId>0</MasterEventId>
      <PeriodScores>
        <PeriodScore>
          <AwayTeamScore>String</AwayTeamScore>
          <HomeTeamScore>String</HomeTeamScore>
          <PeriodDisplayName>String</PeriodDisplayName>
          <PeriodType>String</PeriodType>
        </PeriodScore>
      </PeriodScores>
      <PlayerScores>
        <PlayerScore>
          <PlayerName>String</PlayerName>
          <PlayerScoreType>String</PlayerScoreType>
          <Score>String</Score>
        </PlayerScore>
      </PlayerScores>
      <Possession>String</Possession>
    </MatchScore>
  </Items>
</MatchScoreResponse>

    </soap:Body>
</soap:Envelope>