godfist v0.5.0 Godfist.DataDragon.Data

Interact with the data endpoints from DataDragon in English. Each function must be passed a locale as an atom, you can consult the available languages on Godfist.Static.languages/1.

Default language is english(United States) if none is specified.

These are all available languages in a list. [:argentina, :australia, :china, :czech, :french, :german, :greek, :hungarian, :indonesian, :italian, :japanese, :korean, :malay, :malaysia, :mexico, :philippines, :poland, :polish, :portuguese, :romanian, :russian, :singapore, :spain, :taiwan, :thai, :turkish, :uk, :us, :vietnamese]

Almost every locale has the name of it’s country because I guess there are variations regarding languages on each country.

Link to this section Summary

Functions

Get information about champions

Get information about profile icons

Get information about the items

Get information about a single champion

Get information about summoner spells

Link to this section Functions

Link to this function champions(locale \\ :us)
champions(atom) :: {:ok, map} | {:error, String.t}

Get information about champions.

Example

iex> Godfist.DataDragon.Data.champions(:us)
Link to this function icons(locale \\ :us)
icons(atom) :: {:ok, map} | {:error, String.t}

Get information about profile icons.

Example

iex> Godfist.DataDragon.Data.icons(:greek)
Link to this function items(locale \\ :us)
items(atom) :: {:ok, map} | {:error, String.t}

Get information about the items.

Example

iex> Godfist.DataDragon.Data.items(:spain)
Link to this function single_champ(name, locale \\ :us)
single_champ(String.t, atom) ::
  {:ok, map} |
  {:error, String.t}

Get information about a single champion.

Example

iex> Godfist.DataDragon.Data.single_champ("Aatrox", :japanese)
Link to this function summ_spells(locale \\ :us)
summ_spells(atom) :: {:ok, map} | {:error, String.t}

Get information about summoner spells.

Example

iex> Godfist.DataDragon.Data.summ_spells()