View Source Clashofclans.Client (clashofclans v1.1.0)

Link to this section Summary

Functions

A wrapper for the HTTPoison.get function to a specific URL

Strict URL for (raw) clan data, will be displayed as a list

Strict URL for (raw) player data, will be displayed as a list

Link to this section Types

@type clantag() :: String.t()
@type playertag() :: String.t()
@type urltype() :: String.t()

Link to this section Functions

@spec call_api(urltype()) :: {:ok, map()} | {:error, String.t()}

A wrapper for the HTTPoison.get function to a specific URL

@spec get_clan_data(clantag()) :: {:ok, map()} | {:error, String.t()}

Strict URL for (raw) clan data, will be displayed as a list

Link to this function

get_player_data(playertag)

View Source
@spec get_player_data(playertag()) :: {:ok, map()} | {:error, String.t()}

Strict URL for (raw) player data, will be displayed as a list