Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

missing files

  • Loading branch information...
commit 7a558a2d8916ffbae47fcda3a42b513dff091cb5 1 parent c0d4c1a
@AlgoTrader authored
Showing with 44 additions and 0 deletions.
  1. +14 −0 index.js
  2. +3 −0  lib/betfair_session.js
  3. +27 −0 package.json
View
14 index.js
@@ -0,0 +1,14 @@
+// (C) 2012 Anton Zemlyanov
+//
+// Betfair Sports API for node
+// see Sports API documentation on http://bdp.betfair.com
+//
+// Exported properties:
+// newSession - create Betfair Session
+
+var betfairSession = require('./lib/betfair_session');
+exports.newSession = betfairSession.newSession;
+
+var betfairPrice = require('./lib/betfair_price');
+exports.newBetfairPrice = betfairPrice.newBetfairPrice;
+
View
3  lib/betfair_session.js
@@ -27,6 +27,7 @@ BetfairSession.prototype.open = function(login, password, appKey, cb) {
self.applicationKey = appKey;
cb = cb || function() {};
+ // Compatibility mode, use old V6 login
self.v6Session = v6.newSession(login, password);
self.v6Session.open(function(err,v6res) {
if (err) {
@@ -48,6 +49,7 @@ BetfairSession.prototype.close = function(cb) {
cb = cb || function() {};
+ // Compatibility mode, use old V6 login
self.v6Session.close(function(err, v6res) {
if (err) {
cb(err, v6res);
@@ -58,3 +60,4 @@ BetfairSession.prototype.close = function(cb) {
});
}
+//
View
27 package.json
@@ -0,0 +1,27 @@
+{
+ "name": "betfair",
+ "version": "0.0.0",
+ "description": "Betfair JSON API",
+ "main": "index.js",
+ "private" : true,
+ "directories": {
+ "test": "test"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/AlgoTrader/betfair.git"
+ },
+ "keywords": [
+ "betfair",
+ "sports",
+ "json",
+ "new",
+ "api"
+ ],
+ "author": "Anton Zemlyanov",
+ "license": "BSD",
+ "dependencies" : { "betfair-sports-api": "*", "async":"*" }
+}

0 comments on commit 7a558a2

Please sign in to comment.
Something went wrong with that request. Please try again.