A list of all methods in the ScheduleService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetTeamNextGameAsync | Retrieve the next game for a specific team. |
GetTeamScheduleBySeasonAsync | Retrieve the schedule for a specific team and season. |
GetGameStatsAsync | Retrieve the statistics for a specific game. |
Retrieve the next game for a specific team.
- HTTP Method:
GET
- Endpoint:
/v1/schedule/{team}/next
Parameters
Name | Type | Required | Description |
---|---|---|---|
team | string | ✅ | Three-letter team code |
Return Type
object
Example Usage Code Snippet
using NhlClient;
var client = new NhlClientClient();
var response = await client.Schedule.GetTeamNextGameAsync("team");
Console.WriteLine(response);
Retrieve the schedule for a specific team and season.
- HTTP Method:
GET
- Endpoint:
/v1/schedule/{team}/{season}
Parameters
Name | Type | Required | Description |
---|---|---|---|
team | string | ✅ | Three-letter team code |
season | long | ✅ | Season in YYYYYYYY format |
Return Type
object
Example Usage Code Snippet
using NhlClient;
var client = new NhlClientClient();
var response = await client.Schedule.GetTeamScheduleBySeasonAsync("team", 8);
Console.WriteLine(response);
Retrieve the statistics for a specific game.
- HTTP Method:
GET
- Endpoint:
/v1/schedule/{season}/team/{team}/game/{game}
Parameters
Name | Type | Required | Description |
---|---|---|---|
season | long | ✅ | Season in YYYYYYYY format |
team | string | ✅ | Three-letter team code |
game | long | ✅ | Game ID |
Return Type
object
Example Usage Code Snippet
using NhlClient;
var client = new NhlClientClient();
var response = await client.Schedule.GetGameStatsAsync(9, "team", 5);
Console.WriteLine(response);