# `ExFPL.Entries`
[🔗](https://github.com/sgerrand/ex_fpl/blob/main/lib/ex_fpl/entries.ex#L1)

Fetch ExFPL manager (entry) data.

`get/2`, `history/2` and `picks/3` are public endpoints. `me/1` and
`my_team/2` are authenticated and require an `ExFPL.Session`.

# `get`

```elixir
@spec get(
  integer(),
  keyword()
) :: {:ok, ExFPL.Entry.t() | map()} | {:error, term()}
```

Fetch a manager's profile (`/entry/{team_id}/`).

# `history`

```elixir
@spec history(
  integer(),
  keyword()
) :: {:ok, ExFPL.EntryHistory.t() | map()} | {:error, term()}
```

Fetch a manager's history (`/entry/{team_id}/history/`).

# `me`

```elixir
@spec me(keyword()) :: {:ok, ExFPL.Me.t() | map()} | {:error, term()}
```

Fetch information about the authenticated user (`/me/`).

Requires `session: %ExFPL.Session{}` in `opts`.

# `my_team`

```elixir
@spec my_team(
  integer(),
  keyword()
) :: {:ok, ExFPL.MyTeam.t() | map()} | {:error, term()}
```

Fetch the authenticated user's current team (`/my-team/{team_id}/`).

Requires `session: %ExFPL.Session{}` in `opts`.

# `picks`

```elixir
@spec picks(integer(), integer(), keyword()) ::
  {:ok, ExFPL.Picks.t() | map()} | {:error, term()}
```

Fetch a manager's picks for a gameweek (`/entry/{team_id}/event/{gw}/picks/`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
