Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, screenshots} = ElixirLokaliseApi.Screenshots.all(project_id, page: 2, limit: 1)
screenshot = hd(screenshots.items)
screenshot.screenshot_id
{:ok, screenshot} = ElixirLokaliseApi.Screenshots.find(project_id, screenshot_id)
screenshot.screenshot_id
data = %{
screenshots: [
%{
data: base64_data,
title: "Elixir screen"
}
]
}
{:ok, screenshots} = ElixirLokaliseApi.Screenshots.create(project_id, data)
screenshot = hd(screenshots.items)
screenshot.title
data = %{
title: "Elixir updated",
description: "Mix test"
}
{:ok, screenshot} = ElixirLokaliseApi.Screenshots.update(project_id, screenshot_id, data)
screenshot.title
{:ok, resp} = ElixirLokaliseApi.Screenshots.delete(project_id, screenshot_id)
resp.screenshot_deleted