ExFPL.Fixtures (ExFPL v0.1.0)

Copy Markdown View Source

Fetch fixtures from /fixtures/, optionally filtered by gameweek.

Summary

Functions

List fixtures.

Types

list_opts()

@type list_opts() :: [event: integer(), raw: boolean()] | keyword()

Functions

list(opts \\ [])

@spec list(list_opts()) :: {:ok, [ExFPL.Fixture.t()] | [map()]} | {:error, term()}

List fixtures.

Pass event: gameweek_id to restrict the response to one gameweek. Pass raw: true to receive the original list of maps with string keys instead of ExFPL.Fixture structs.