logoutBF: Logout from the Betfair API.

View source: R/logoutBF.R

logoutBFR Documentation

Logout from the Betfair API.

Description

logoutBF terminates the current session. loginBF will need to be called again before any further actions can be performed.

Usage

logoutBF(suppress = TRUE, sslVerify = TRUE)

Arguments

suppress

Boolean. RCurl::postForm posts a warning due to a lack of inputs. By default, this parameter is set to TRUE, meaning this warning is suppressed. Changing this parameter to FALSE will result in warnings being posted.

sslVerify

Boolean. This argument defaults to TRUE and is optional. In some cases, where users have a self signed SSL Certificate, for example they may be behind a proxy server, Betfair will fail login with "SSL certificate problem: self signed certificate in certificate chain". If this error occurs you may set sslVerify to FALSE. This does open a small security risk of a man-in-the-middle intercepting your login credentials.

Details

logoutBF terminates the current session. loginBF will need to be called again before any further actions can be performed.

Value

Similar to loginBF, the call output is parsed from JSON as a list, from which the statuses SUCCESS or FAIL and error, if it is not null are returned as a colon seperated concatenated string. For error values, see https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Logout.

See Also

https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Logout for general information on requesting Logout on the Betfair API.

loginBF, which must be executed first, as this function requires a valid session token

Examples

## Not run: 
loginBF("username","password","appKey")
logoutBF()
logoutBF()

The last logout in this block will return an error. The first logout terminates
the session, meaning there is no session to end on the second logout request.
 
## End(Not run)


phillc73/abettor documentation built on June 10, 2022, 4:43 p.m.