On the SDK I receive the following error message every time I try to run any solution in Visual Studio.
“An unhandled exception of type 'System.Exception' occurred in BetfairApiConsole.exe
throw new Exception("Please enter your betfair user name and password!");”
Can you please explain how / where I input my username and password to start these?
Thanks in advance
Comments ( 3 )
Betfair Bot
Actually all you need is just to read the code. To any console application you can enter command line arguments, and in the code of the console application those arguments are passed as array of strings.
In the code you can see that the first argument (args[0]) represents your username and the second argument (args[1]) your password.
Go to the Solution Explorer and on the BetfairApiConsole project click with your right mouse button, select Properties menu item, and click on it.
In the project properties window select Dubug, and in the Start Options sections, in the Command line arguments, enter your username and password. (the argument separator character is space).
Execute your bot sdk project, and your betfair credentials will be used to login to betfair thriugh betfair api. You can debug your test bot project or create your own ones.
In bfexplorer bot sdk you can find projects in C# or F# programming languages.
Archie
Hi Stefan,
Thanks for this information. Instructions worked well.
shokkem14
cayou use the betfair api without having to pay the £300 activation fee