Chemist v0.4.0 Chemist.Champion

Uses champion-v1.2 API.

Summary

Functions

Contains champion information for a single champion; retrieved by champion id

Contains a list of champion information for all champions

Functions

champion(region, champion_id)

Contains champion information for a single champion; retrieved by champion id.

Sample output:

{:ok,
 %{"active" => true, "botEnabled" => true, "botMmEnabled" => true,
   "freeToPlay" => false, "id" => 236, "rankedPlayEnabled" => true}}
champions(region, opts \\ %{})

Contains a list of champion information for all champions.

Default opts:

  • freeToPlay: false

    • Optional filter param to retrieve only free to play champions.

Sample output:

{:ok,
 %{"champions" => [%{"active" => true, "botEnabled" => false,
      "botMmEnabled" => false, "freeToPlay" => false, "id" => 266,
      "rankedPlayEnabled" => true}, ...