ExFPL.Live (ExFPL v0.1.0)

Copy Markdown View Source

Fetch live gameweek data from /event/{event_id}/live/.

Summary

Functions

Fetch the live snapshot for the given gameweek.

Functions

fetch(event_id, opts \\ [])

@spec fetch(
  integer(),
  keyword()
) :: {:ok, ExFPL.LiveSnapshot.t() | map()} | {:error, term()}

Fetch the live snapshot for the given gameweek.

Pass raw: true to receive the raw JSON-decoded map.