Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
The actual HTTP requests are sent using HTTPoison.
To customize the request (for example, to provide timeouts or proxy), add :request_options
inside your config.exs
file:
config :elixir_lokalise_api,
api_token: {:system, "LOKALISE_API_TOKEN"},
request_options: [
timeout: 5000,
recv_timeout: 5000
]
If the request_options
is not provided, the default options will be utilized. You can find full list
of all the available :options
in the HTTPoison docs.
You can also override the default host URLs:
config :elixir_lokalise_api, base_url_api: "YOUR_API_BASE_URL"
config :elixir_lokalise_api, base_url_oauth2: "YOUR_OAUTH2_BASE_URL"