Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added schedule endpoint #67

Merged
merged 1 commit into from
Apr 24, 2019
Merged

added schedule endpoint #67

merged 1 commit into from
Apr 24, 2019

Conversation

jcostello93
Copy link
Contributor

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 bttmly merged commit b55585e into bttmly:master Apr 24, 2019
@bttmly
Copy link
Owner

bttmly commented Apr 24, 2019

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

Published to npm as nba@4.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants