TBS Apps API

<back to all web services

BlackbooksSearchRequest

Requires Authentication
The following routes are available for this service:
POST/BlackbooksSearchSearch for blackbooks runners, for the currently authenticated userSearch blackbooks runners
BlackbooksSearchRequest Parameters:
NameParameterData TypeRequiredDescription
DisciplineTypebodystringNoDiscipline type, for example: T – Thoroughbred, H – Harness and G – Greyhounds
TermbodystringNoSearch term
BlackbooksSearchResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
HorseListformList<BlackbooksHorse>No
BlackbooksHorse Parameters:
NameParameterData TypeRequiredDescription
Ageformint?No
HorseformstringNo
DamformstringNo
SireformstringNo
Hyearformint?No
HorseIdformint?No
DamIdformint?No
SireIdformint?No
SexformstringNo
DisciplineformstringNo
CourseNameformstringNo
RaceDateformstringNo
CountryCodeformstringNo
CrsCountryCodeformstringNo
CourseIdformint?No
Lrfpformint?No
RaceIdformint?No
RaceNoformdouble?No
RaceNameformstringNo
TypeformstringNo
NextRunDateformstringNo
NextCountryCodeformstringNo
NextCountryidformint?No
NextCourseCodeformstringNo
NextCourseIdformint?No
NextCourseformstringNo
NextMeetingIdformint?No
NextRaceIdformint?No
NextRaceformstringNo
NextRaceNoformdouble?No
AbbreivationformList<string>No

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 /BlackbooksSearch HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"DisciplineType":"String","Term":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ErrorNo":0,"Message":"String","HorseList":[{"Age":0,"Horse":"String","Dam":"String","Sire":"String","Hyear":0,"HorseId":0,"DamId":0,"SireId":0,"Sex":"String","Discipline":"String","CourseName":"String","RaceDate":"String","CountryCode":"String","CrsCountryCode":"String","CourseId":0,"Lrfp":0,"RaceId":0,"RaceNo":0,"RaceName":"String","Type":"String","NextRunDate":"String","NextCountryCode":"String","NextCountryid":0,"NextCourseCode":"String","NextCourseId":0,"NextCourse":"String","NextMeetingId":0,"NextRaceId":0,"NextRace":"String","NextRaceNo":0,"Abbreivation":["String"]}]}