nhl
object
#
nhl : Operations for NHL.
Kind: global namespace
- nhl :
object
#
nhl.getPlayByPlay(id) โGets the NHL game play-by-play data for a specified game.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game id. |
Example
const result = await sdv.nhl.getPlayByPlay(401272446);
#
nhl.getBoxScore(id) โGets the NHL game box score data for a specified game.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game id. |
Example
const result = await sdv.nhl.getBoxScore(401272446);
#
nhl.getSummary(id) โGets the NHL game summary data for a specified game.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game id. |
Example
const result = await sdv.nhl.getSummary(401272446);
#
nhl.getPicks(id) โGets the NHL PickCenter data for a specified game.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Game id. |
Example
const result = await sdv.nhl.getPicks(401272446);
#
nhl.getSchedule(year, month, day) โGets the NHL schedule data for a specified date if available.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
year | * | Year (YYYY) |
month | * | Month (MM) |
day | * | Day (DD) |
Example
const result = await sdv.nhl.getSchedule(year = 2019, month = 11, day = 17)
#
nhl.getScoreboard(year, month, day, limit) โGets the NHL scoreboard data for a specified date if available.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
year | * | Year (YYYY) |
month | * | Month (MM) |
day | * | Day (DD) |
limit | number | Limit on the number of results @default 300 |
Example
const result = await sdv.nhl.getScoreboard(year = 2019, month = 11, day = 16)
#
nhl.getStandings(year, group) โGets the team standings for the NHL.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
year | number | Season |
group | number | acceptable group names: 'league','conference','division' |
Example
const yr = 2016;const result = await sdv.nhl.getStandings(year = yr);
#
nhl.getTeamList()Gets the list of all NHL teams their identification info for ESPN.
Kind: static method of nhl
Example
const result = await sdv.nhl.getTeamList();
#
nhl.getTeamInfo(id) โGets the team info for a specific NHL team.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Team Id |
Example
const teamId = 16;const result = await sdv.nhl.getTeamInfo(teamId);
#
nhl.getTeamPlayers(id) โGets the team roster information for a specific NHL team.
Kind: static method of nhl
Returns: json
Param | Type | Description |
---|---|---|
id | number | Team Id |
Example
const teamId = 16;const result = await sdv.nhl.getTeamPlayers(teamId);