A NodeJS wrapper for the Stattleship sports analytics API
npm install node-stattleship
var StattleshipAPI = require('node-stattleship');
var stattleship = new StattleshipAPI('YOUR_ACCESS_TOKEN');
var params = {
team_id: "mlb-bos"
};
stattleship.players('baseball', 'mlb', params).then(function(players) {
players.forEach(function(element, index, array) {
console.log(element.name);
});
});
The Stattleship API can be found at http://developers.stattleship.com
Please open issues with feature requests and bugs.
MIT