Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, snapshots} = ElixirLokaliseApi.Snapshots.all(project_id, page: 2, limit: 1)
snapshot = hd(snapshots.items)
snapshot.snapshot_id
data = %{
title: "Elixir snap"
}
{:ok, snapshot} = ElixirLokaliseApi.Snapshots.create(project_id, data)
snapshot.title
{:ok, project} = ElixirLokaliseApi.Snapshots.restore(project_id, snapshot_id)
project.project_id
{:ok, resp} = ElixirLokaliseApi.Snapshots.delete(project_id, snapshot_id)
resp.snapshot_deleted