TBS Apps API

<back to all web services

Next5RacesRequest

The following routes are available for this service:
GET,POST/Next5RacesGets the next 5 races to jump in chronological orderGets the next 5 races to jump in chronological order. Can be filtered by Thoroughbred, Harness or Greyhounds
Next5RacesRequest Parameters:
NameParameterData TypeRequiredDescription
EventTypeFilterbodybyteNo1-Throughbred,2-Harness,4-Greyhounds
Next5RacesResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<Next5Race>No
Next5Race Parameters:
NameParameterData TypeRequiredDescription
RaceformRaceShortcutNo
TimeToJumpformstringNo
EventTypeformstringNo
SecondsToJumpformintNo
AdvertisedStartTimeformstringNo
NextRefreshformintNo
RaceShortcut Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
VenueformstringNo
RaceNoformintNo
AdvertisedStartTimeformDateTimeNo
EventTypeformintNo
MasterCategoryNameformstringNo

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

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

{
	Items: 
	[
		{
			Race: 
			{
				EventId: 0,
				Venue: String,
				RaceNo: 0,
				AdvertisedStartTime: 0001-01-01,
				EventType: 0,
				MasterCategoryName: String
			},
			TimeToJump: String,
			EventType: String,
			SecondsToJump: 0,
			AdvertisedStartTime: String,
			NextRefresh: 0
		}
	]
}