Packages

An extended and functional wrapper for the Clash of Clans API

Current section

Files

Jump to
clashofclans lib endpoints players legend_league current_season.ex
Raw

lib/endpoints/players/legend_league/current_season.ex

defmodule Endpoints.Players.LegendLeague.CurrentSeason do
alias Endpoints.Players.Raw
def get_players_current_legend_season(playertag) do
with {:ok, account} <- Raw.get_raw_player_information(playertag) do
Kernel.get_in(account, ["legendStatistics", "currentSeason"])
end
end
end