betfaiR

The bf_parse function attempts to parse the response object into neat formats, for some of the methods the response can be parsed into single simple dataframes. These methods include competitions, countries, eventTypes, events, marketTypes. Other methods, primarily marketCatalogue and marketBook, require a bit more care in parsing the response, as it typically contains some deep nested structure. While methods such as placeOrders, or cancelOrders will parse the response of any bets that were attempted.

usage

res <- bf_parse(res, ...)

arguments

param details
res response object returned by bf_post and parsed by httr::content

return

Either a single dataframe (for the simple methods mentioned above), or a complex list with different dataframes (these methods might include the raw response - so the user can parse it themselves).

Due to the various methods returning different responses varying in detail and complexity (testing all combinations is tricky), so this function may not be that reliable at the moment. See the different methods pages for the exact returns.