View Source ExUrlbox.Config (ExUrlbox v0.1.0)

Retrieve config variables that are used with Urlbox'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 default api endpoint

Returns the URLBOX_API_KEY

Returns the URLBOX_API_SECRET

A light wrapper around Application.get_env/2, providing automatic support for {:system, "VAR"} tuples.

Link to this section Functions

Returns the default api endpoint

Returns the URLBOX_API_KEY

config :ex_urlbox, api_key: "URLBOX_API_KEY"

Returns the URLBOX_API_SECRET

config :ex_urlbox, api_secret: "URLBOX_API_SECRET"
Link to this function

from_env(otp_app, key, default \\ nil)

View Source

A light wrapper around Application.get_env/2, providing automatic support for {:system, "VAR"} tuples.