Packages

An extended and functional wrapper for the Clash of Clans API

Current section

Files

Jump to
clashofclans lib endpoints players legend_league legend_trophies.ex
Raw

lib/endpoints/players/legend_league/legend_trophies.ex

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