View Source ElixirLokaliseApi.Config (ElixirLokaliseApi v2.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.

Link to this section Summary

Functions

Returns Lokalise APIv2 token. Set it inside your mix.exs

Returns the base URL of the Lokalise APIv2

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 APIv2 OAuth2 token. Set it inside your mix.exs

Returns package version

Link to this section 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

Link to this function

from_env(key, default \\ nil)

View Source

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 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