0.5.1 • Published 12 years ago

betfair-sports-api v0.5.1

Weekly downloads
87
License
-
Repository
github
Last release
12 years ago

Betfair Sports API for Node.js

Warning: Please do not use, it is unusable yet

Installation

npm install betfair-sports-api

Synopsis

An example of using Betfair Sports API

var betfairUser = "user";
var betfairPassword = "password";

var betfairGlobalService = require("../lib/betfair_global_service.js");

var loginRequest = {
    locationId : "0",
    password : betfairPassword,
    productId : "82",
    username : betfairUser,
    vendorSoftwareId : "0"
};
console.log("login Request:");
console.log(loginRequest);

var login = betfairGlobalService.login(loginRequest);
login.execute(function(resp) {
    console.log("login Response:");
    console.log(resp);
});

API

Session Management API

Session Management API is used to open, close and get objects of BetfairSession class. There may be multiple sessions at the same time to Betfair using different Betfair accounts.

openSession(login, password) - starts a new session using provided login and password, returns sessionId

getSession(sessionId) - returns the specified BetfairSession object

closeSession(sessionId) - close session with given sessionId, sends logout

'closeAllSessions()' - close all the sessions, sends logout

Example: var betfairSports = require("betfair-sports-api");

// open a session to Betfair API
var id = betfairSports.openSession("MyLogin", "MyPassword");
var session = betfairSports.getSession(id);

BetfairSession class

not yet written

0.5.1

12 years ago

0.5.0

12 years ago

0.4.4

12 years ago

0.4.3

12 years ago

0.4.1

12 years ago

0.3.1

12 years ago

0.2.3

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.9

12 years ago

0.1.8

12 years ago

0.1.7

12 years ago

0.1.6

12 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago