Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/securingsincity/node-sports-data


https://github.com/securingsincity/node-sports-data

Last synced: about 12 hours ago
JSON representation

Awesome Lists containing this project

README

        

#Node-Sports-Data

An API wrapper for sports data

##Install
`npm install node-sports-data`

##Instantiate

```
var SportsData = require('node-sports-data');

var sportsData = new SportsData({
apiKey : YOUR_API_KEY
});

```

##Commands

###Team Rosters

Retrieve all projects

```
sportsData.teamRosters(function(response) {
// team rosters : response.teams in an array
})
```

###Project

Retrieve a specific player

```
sportsData.players(playerId,function(response) {
// your player
})
```