bttmly / nba

Node.js client for nba.com API endpoints
MIT License
710 stars 180 forks source link

added schedule endpoint #67

Closed jcostello93 closed 5 years ago

jcostello93 commented 5 years ago

This pull request adds the schedule endpoint in src/data.js.

This function takes a single argument -- season. This is the first year of the NBA season (e.g. "2018" for the 2018-19 NBA season).

Example call:

var NBA = require("nba"); 

NBA.data.schedule("2018").then(response => {
  console.log(response); 
})
bttmly commented 5 years ago

Thanks! PRs always welcome if you find more /data endpoints!

Published to npm as nba@4.7.0