login
1.0.0
Travis CI
This is a really simple node module to allow you to login into betfair and get a session token.
Install:
npm install betfair-js-login --save
Usage:
var bfJsLogin = require('betfair-js-login');
var loginClient = new bfJsLogin.Login('USERNAME', 'PASSWORD', 'APPKEY');
loginClient.login().then((token) => {
console.log(token);
});
Development:
Clone this repo yout development machine
Install packages npm install
Create a .env
file in the root folder that looks like this:
BFUSERNAME=<YOUR_USERNAME>
BFPASSWORD=<YOUR_PASSWORD>
BFAPPKEY=<YOUR_APPKEY>
Run tests to make sure everything is working npm run test