kshvmdn / nba.js

Node.js library for NBA stats
http://npmjs.com/package/nba.js
MIT License
357 stars 47 forks source link

Required parameters #13

Open kashav opened 7 years ago

kashav commented 7 years ago

Find the required parameters for each of the nba.stats endpoints and make that parameter bold.

Most stats.nba.com endpoints will throw an error if a required parameter is missing, so we can use this to find the list of required params.


e.g. Making a request to http://stats.nba.com/stats/commonallplayers without any parameters will return:

LeagueID is required; Season is required; IsOnlyCurrentSeason is required

So the documentation for the data.stats.allPlayers method should look like:

kashav commented 7 years ago

List of endpoint URLs:

mihaisavezi commented 6 years ago
kashav commented 6 years ago

@mihaisavezi, nice find! Wanna submit a PR to add it to the library? 😀

anich003 commented 6 years ago

Have you seen the template repo here? Specifically, the file nba.json seems to have alot (if not all) of these endpoints with their required parameters listed, as well as the set of parameters with their default values.