# ElixirLokaliseApi

[![Build Status](](
[![Coverage Status](](

Official Elixir interface for Lokalise APIv2.

## Quickstart

Add a new depedency to `mix.exs`:

def deps do

Put your Lokalise API token into `config.exs`:

config :your_app, api_token: "LOKALISE_API_TOKEN"

If you are using ENV variables, use the following approach:

config :your_app, api_token: {:system, "LOKALISE_API_TOKEN"}

Now you can perform API calls:

project_data = %{name: "Elixir", description: "Created via API"}
{:ok, project} = ElixirLokaliseApi.Projects.create(project_data) |> IO.puts # => "Elixir"

translation_data = %{
  data: "ZnI6...",
  filename: "sample.yml",
  lang_iso: "en"
{:ok, process} = ElixirLokaliseApi.Files.upload(project.project_id, data)

{:ok, process} = QueuedProcesses.find(project.project_id, process.process_id)

process.status |> IO.puts # => "finished"

## Documentation

All documentation and usage examples can be found at [](

Brief API reference is also available at [](

## License

Licensed under the [BSD 3 Clause license](

Copyright (c) Lokalise team, [Ilya Bodrov](