TBS Apps API

<back to all web services

RaceReplayFromFormRequest

The following routes are available for this service:
POST/RaceReplayFromFormCheck Race Replay availability from Form DataReturns streaming indicator info (not actual stream URLs) for up to 10 form items
RaceReplayFromFormRequest Parameters:
NameParameterData TypeRequiredDescription
ItemsbodyList<RaceReplayFormItem>NoList of form items (maximum 10)
RaceReplayFormItem Parameters:
NameParameterData TypeRequiredDescription
TrackNameformstringNoTrack Name
DateformstringNoRace Date in AEDT (format: yyyyMMdd)
RaceNumberformintNoRace Number
RaceTypeCodeformstringNoRace Type Code (R=Thoroughbred, H=Harness, G=Greyhound)
RaceReplayFromFormResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<RaceReplayFromFormResponseItem>No
RaceReplayFromFormResponseItem Parameters:
NameParameterData TypeRequiredDescription
TrackNameformstringNo
DateformstringNo
RaceNumberformintNo
StreamingformStreamInfoNo
StreamInfo Parameters:
NameParameterData TypeRequiredDescription
LiveStreamformStreamItemNo
ReplayformStreamItemNo
StreamingUrlformstringNo
ThumbnailUrlformstringNo
StreamItem Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
ChannelformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /RaceReplayFromForm HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Items":[{"TrackName":"String","Date":"String","RaceNumber":0,"RaceTypeCode":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Items":[{"TrackName":"String","Date":"String","RaceNumber":0,"Streaming":{"LiveStream":{"Provider":"String","Channel":"String"},"Replay":{"Provider":"String","Channel":"String"},"StreamingUrl":"String","ThumbnailUrl":"String"}}]}