Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/securingsincity/node-sports-data
https://github.com/securingsincity/node-sports-data
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/securingsincity/node-sports-data
- Owner: securingsincity
- Created: 2015-03-28T15:28:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T15:56:51.000Z (almost 10 years ago)
- Last Synced: 2024-11-08T02:09:46.764Z (about 2 months ago)
- Language: HTML
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
})
```