Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, branches} = ElixirLokaliseApi.Branches.all(project_id, page: 2, limit: 1)
branch = hd branches.items
branch.name
{:ok, branch} = ElixirLokaliseApi.Branches.find(project_id, branch_id)
branch.branch_id
branch.name
data = %{name: "Elixir"}
{:ok, branch} = ElixirLokaliseApi.Branches.create(project_id, data)
branch.name
data = %{name: "Elixir-update"}
{:ok, branch} = ElixirLokaliseApi.Branches.update(project_id, branch_id, data)
branch.name
{:ok, resp} = ElixirLokaliseApi.Branches.delete(project_id, branch_id)
resp.branch_deleted
data = %{force_conflict_resolve_using: "target", target_branch_id: target_branch_id}
{:ok, resp} = ElixirLokaliseApi.Branches.merge(project_id, branch_id, data)
resp.branch_merged