Skip to content

Latest commit

 

History

History
100 lines (61 loc) · 2.63 KB

File metadata and controls

100 lines (61 loc) · 2.63 KB

PlayerService

A list of all methods in the PlayerService service. Click on the method name to view detailed information about that method.

Methods Description
GetGameLogAsync Retrieve the game log for a specific player, season, and game type.
GetPlayerInfoAsync Retrieve information for a specific player.
GetGameLogCurrentAsync Retrieve the game log for a specific player as of the current moment.

GetGameLogAsync

Retrieve the game log for a specific player, season, and game type.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/game-log/{season}/{game-type}

Parameters

Name Type Required Description
player long Player ID
season long Season in YYYYYYYY format
gameType long Game type (2 for regular season, 3 for playoffs)

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetGameLogAsync(8, 2, 9);

Console.WriteLine(response);

GetPlayerInfoAsync

Retrieve information for a specific player.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/landing

Parameters

Name Type Required Description
player long Player ID

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetPlayerInfoAsync(8);

Console.WriteLine(response);

GetGameLogCurrentAsync

Retrieve the game log for a specific player as of the current moment.

  • HTTP Method: GET
  • Endpoint: /v1/player/{player}/game-log/now

Parameters

Name Type Required Description
player long Player ID

Return Type

object

Example Usage Code Snippet

using NhlClient;

var client = new NhlClientClient();

var response = await client.Player.GetGameLogCurrentAsync(2);

Console.WriteLine(response);