Packages

Elixir package for the HiRez API which provides data about its games and lets you bypass all the session generation and url-building logic and gives you a coherent API for all its games' endpoints.

Current section

Files

Jump to
exrez lib paladins.ex
Raw

lib/paladins.ex

defmodule Exrez.Paladins do
import Exrez, only: [api_call: 3]
def champions(platform, language \\ 1) do
api_call(platform, "getchampions", "/#{language}")
end
def champion_cards(platform, champion_id, language \\ 1) do
api_call(platform, "getchampioncards", "/#{champion_id}/#{language}")
end
def champion_skins(platform, champion_id, language \\ 1) do
api_call(platform, "getchampionskins", "/#{champion_id}/#{language}")
end
def champion_ranks(platform, player) do
api_call(platform, "getchampionranks", "/#{player}")
end
end