igdb v0.1.0 Igdb.Config
Stores configuration variables used to communicate with IGDB’s API.
All settings also accept {:system, "ENV_VAR_NAME"}
to read their
values from environment variables at runtime.
Link to this section Summary
Functions
Returns the IGDB API key. Set it in mix.exs
Returns the IGDB root path. Set it in mix.exs
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples
Link to this section Functions
Link to this function
api_key()
Returns the IGDB API key. Set it in mix.exs
:
config :igdb, api_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Link to this function
api_root()
Returns the IGDB root path. Set it in mix.exs
:
config :igdb, api_root: "https://api-XXXXXXXXXX.apicast.io"
Link to this function
from_env(otp_app, key, default \\ nil)
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples.