bf_check: check response is valid

Description Usage Arguments Details

Description

check for any errors in the response from bf_post

Usage

1
bf_check(res, method = "competitions")

Arguments

res

response object

method

the method the response object came from, see methods section on betfair page, or bf_basic_req.

Details

errors may be invalid JSON, missing parameters, or if the response contains zero results, otherwise return the results with a class that corresponds to the method (see betfair) that can then be parsed into a dataframe by bf_parse.


durtal/betfaiR documentation built on May 15, 2019, 6:01 p.m.