Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, comments} = ElixirLokaliseApi.ProjectComments.all(project_id, page: 2, limit: 1)
single_comment = hd comments.items
single_comment.comment
{:ok, comments} = ElixirLokaliseApi.KeyComments.all(project_id, key_id, limit: 1, page: 2)
data = %{
comments: [
%{comment: "Elixir comment"}
]
}
{:ok, comments} = ElixirLokaliseApi.KeyComments.create(project_id, key_id, data)
comment = hd comments.items
comment.comment
{:ok, comment} = ElixirLokaliseApi.KeyComments.find(project_id, key_id, comment_id)
comment.comment
comment.comment_id
{:ok, resp} = ElixirLokaliseApi.KeyComments.delete(project_id, key_id, comment_id)
assert resp.comment_deleted