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 .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 /GroupedFeedRaceCard HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	Thoroughbred: 
	[
		[
			{
				EventTypeId: 0,
				EventTypeDesc: String,
				BTEventId: 0,
				BMEventId: 0,
				BTVenueId: 0,
				BMVenueId: 0,
				Venue: String,
				CountryCode: String,
				RaceNumber: 0,
				AdvertisedStartTime: 0001-01-01,
				ActualStartTime: 0001-01-01,
				ResultStatusId: 0,
				IsOpenForBetting: False,
				EventName: {}
			}
		]
	],
	Greyhounds: 
	[
		[
			{
				EventTypeId: 0,
				EventTypeDesc: String,
				BTEventId: 0,
				BMEventId: 0,
				BTVenueId: 0,
				BMVenueId: 0,
				Venue: String,
				CountryCode: String,
				RaceNumber: 0,
				AdvertisedStartTime: 0001-01-01,
				ActualStartTime: 0001-01-01,
				ResultStatusId: 0,
				IsOpenForBetting: False,
				EventName: {}
			}
		]
	],
	Trots: 
	[
		[
			{
				EventTypeId: 0,
				EventTypeDesc: String,
				BTEventId: 0,
				BMEventId: 0,
				BTVenueId: 0,
				BMVenueId: 0,
				Venue: String,
				CountryCode: String,
				RaceNumber: 0,
				AdvertisedStartTime: 0001-01-01,
				ActualStartTime: 0001-01-01,
				ResultStatusId: 0,
				IsOpenForBetting: False,
				EventName: {}
			}
		]
	]
}