View Source ElixirLokaliseApi.Config (ElixirLokaliseApi v3.3.0)
Stores configuration variables used to communicate with Lokalise APIv2.
All settings also accept {:system, "ENV_VAR_NAME"}
to read their
values from environment variables at runtime.
Summary
Functions
Returns Lokalise APIv2 token. Set it inside your mix.exs
Returns the base URL of the Lokalise APIv2 or OAuth2. Set it inside your mix.exs
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples. Based on https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/config.ex
Returns Lokalise OAuth2 client ID. Set it inside your mix.exs
Returns Lokalise OAuth2 client secret. Set it inside your mix.exs
Returns Lokalise APIv2 OAuth2 token. Set it inside your mix.exs
A wrapper around Application.put_env/3
Returns package version
Functions
Returns Lokalise APIv2 token. Set it inside your mix.exs
:
config :elixir_lokalise_api, api_token: "YOUR_API_TOKEN"
Returns the base URL of the Lokalise APIv2 or OAuth2. Set it inside your mix.exs
:
config :elixir_lokalise_api, base_url_api: "YOUR_API_BASE_URL"
config :elixir_lokalise_api, base_url_oauth2: "YOUR_OAUTH2_BASE_URL"
You can also use {:system, "ENV_VAR_NAME"}
to set it via environment variables.
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples. Based on https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/config.ex
Returns Lokalise OAuth2 client ID. Set it inside your mix.exs
:
config :elixir_lokalise_api, oauth2_client_id: "YOUR_CLIENT_ID"
Returns Lokalise OAuth2 client secret. Set it inside your mix.exs
:
config :elixir_lokalise_api, oauth2_client_secret: "YOUR_CLIENT_ID"
Returns Lokalise APIv2 OAuth2 token. Set it inside your mix.exs
:
config :elixir_lokalise_api, oauth2_token: "YOUR_API_TOKEN"
Or use Config.put_env/2 to set it on the fly:
Config.put_env(:oauth2_token, "123abc")
A wrapper around Application.put_env/3
Returns package version