Dunno what the recommended approach is, but in my test app I navigate to Horse racing via a dynamically generated Menu Tree, so the series of requests I use to get to UK and Irish Horse Races for the current day is:
1) https://beta-api.betfair.com/rest/v1.0/listEventTypes/{"filter":{"eventTypeIds":[]}}
2) https://beta-api.betfair.com/rest/v1.0/listEvents/{"filter":{"eventTypeIds":[7],"marketStartTime":{"to":"2
6T07:44:20.81Z","from":"2013-03-25T07:44:20.81Z"},"marketCountries":["GB","IE"]}}
with the from and to times generated from the current time and the current time + 1 day, and the required marketCountries selected by the user in his preferences
then clicking on the meeting name (e.g "Lingfield") generated from the second query sends:
3) https://beta-api.betfair.com/rest/v1.0/listMarketCatalogue/{"sort":"FIRST_TO_START","marketProjection":["MARKET_DE
SCRIPTION","RUNNER_DESCRIPTION"],"maxResults":15,"filter":{"eventIds":["26982923"]}}
with the maxResults coming from the response to 2)
(the "sort" param doesn't seem to work in the api yet
)
1) https://beta-api.betfair.com/rest/v1.0/listEventTypes/{"filter":{"eventTypeIds":[]}}
2) https://beta-api.betfair.com/rest/v1.0/listEvents/{"filter":{"eventTypeIds":[7],"marketStartTime":{"to":"2
6T07:44:20.81Z","from":"2013-03-25T07:44:20.81Z"},"marketCountries":["GB","IE"]}}
with the from and to times generated from the current time and the current time + 1 day, and the required marketCountries selected by the user in his preferences
then clicking on the meeting name (e.g "Lingfield") generated from the second query sends:
3) https://beta-api.betfair.com/rest/v1.0/listMarketCatalogue/{"sort":"FIRST_TO_START","marketProjection":["MARKET_DE
SCRIPTION","RUNNER_DESCRIPTION"],"maxResults":15,"filter":{"eventIds":["26982923"]}}
with the maxResults coming from the response to 2)
(the "sort" param doesn't seem to work in the api yet
)


Comment