TBS Apps API

<back to all web services

GroupedFeedRaceCardRequest

Get a race card (thoroughbred,harness and greyhound races) for a given day-offsetGet a race card for a given day-offset. For example DaysToRace => 0 means today's racecard.
GroupedFeedRaceCardRequest Parameters:
NameParameterData TypeRequiredDescription
DaysToRacebodyintNoDays To Race
GroupedFeedRaceCard Parameters:
NameParameterData TypeRequiredDescription
ThoroughbredformList<List<FeedRaceCardItem>>No
GreyhoundsformList<List<FeedRaceCardItem>>No
TrotsformList<List<FeedRaceCardItem>>No

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

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: ios-api.betright.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length

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

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

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

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

<GroupedFeedRaceCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
  <Greyhounds>
    <ArrayOfFeedRaceCardItem>
      <FeedRaceCardItem>
        <ActualStartTime>0001-01-01T00:00:00</ActualStartTime>
        <AdvertisedStartTime>0001-01-01T00:00:00</AdvertisedStartTime>
        <BMEventId>0</BMEventId>
        <BMVenueId>0</BMVenueId>
        <BTEventId>0</BTEventId>
        <BTVenueId>0</BTVenueId>
        <CountryCode>String</CountryCode>
        <EventName />
        <EventTypeDesc>String</EventTypeDesc>
        <EventTypeId>0</EventTypeId>
        <IsOpenForBetting>false</IsOpenForBetting>
        <RaceNumber>0</RaceNumber>
        <ResultStatusId>0</ResultStatusId>
        <Runners i:nil="true" />
        <Venue>String</Venue>
      </FeedRaceCardItem>
    </ArrayOfFeedRaceCardItem>
  </Greyhounds>
  <Thoroughbred>
    <ArrayOfFeedRaceCardItem>
      <FeedRaceCardItem>
        <ActualStartTime>0001-01-01T00:00:00</ActualStartTime>
        <AdvertisedStartTime>0001-01-01T00:00:00</AdvertisedStartTime>
        <BMEventId>0</BMEventId>
        <BMVenueId>0</BMVenueId>
        <BTEventId>0</BTEventId>
        <BTVenueId>0</BTVenueId>
        <CountryCode>String</CountryCode>
        <EventName />
        <EventTypeDesc>String</EventTypeDesc>
        <EventTypeId>0</EventTypeId>
        <IsOpenForBetting>false</IsOpenForBetting>
        <RaceNumber>0</RaceNumber>
        <ResultStatusId>0</ResultStatusId>
        <Runners i:nil="true" />
        <Venue>String</Venue>
      </FeedRaceCardItem>
    </ArrayOfFeedRaceCardItem>
  </Thoroughbred>
  <Trots>
    <ArrayOfFeedRaceCardItem>
      <FeedRaceCardItem>
        <ActualStartTime>0001-01-01T00:00:00</ActualStartTime>
        <AdvertisedStartTime>0001-01-01T00:00:00</AdvertisedStartTime>
        <BMEventId>0</BMEventId>
        <BMVenueId>0</BMVenueId>
        <BTEventId>0</BTEventId>
        <BTVenueId>0</BTVenueId>
        <CountryCode>String</CountryCode>
        <EventName />
        <EventTypeDesc>String</EventTypeDesc>
        <EventTypeId>0</EventTypeId>
        <IsOpenForBetting>false</IsOpenForBetting>
        <RaceNumber>0</RaceNumber>
        <ResultStatusId>0</ResultStatusId>
        <Runners i:nil="true" />
        <Venue>String</Venue>
      </FeedRaceCardItem>
    </ArrayOfFeedRaceCardItem>
  </Trots>
</GroupedFeedRaceCard>

    </soap12:Body>
</soap12:Envelope>