NBA.Live.Scoreboard (nba_api_ex v0.1.0)

View Source

Fetches the NBA scoreboard data for a specific date.

Summary

Functions

Fetches live NBA scoreboard data.

Functions

get(opts \\ [])

(since 0.1.0)

Fetches live NBA scoreboard data.

Parameters

  • opts: A keyword list of additional options for the request, such as headers or timeout settings.

Returns

  • {:ok, scoreboard}: A map containing the scoreboard data.
  • {:error, reason}: An error tuple with the reason for failure.

Example

iex> NBA.Live.Scoreboard.get()
{:ok, [%{"gameId" => "0042400311", ...}, ...]}

get!(opts \\ [])

(since 0.1.0)