TBS Apps API

<back to all web services

GroupedFeedRaceCardRequest

The following routes are available for this service:
GET,POST/GroupedFeedRaceCardGet 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 .xml suffix or ?format=xml

HTTP + XML

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

POST /GroupedFeedRaceCard HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<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>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<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>