Lokalise APIv2 Elixir SDK

Elixir interface for the Lokalise APIv2.

View the Project on GitHub lokalise/elixir-lokalise-api




Team users

Fetch team users

Doc

{:ok, users} = ElixirLokaliseApi.TeamUsers.all(team_id, limit: 1, page: 2)

user = hd(users.items)
user.user_id

Fetch a single team user

Doc

{:ok, user} = ElixirLokaliseApi.TeamUsers.find(team_id, user_id)

user.user_id

Update team user

Doc

data = %{
  role: "admin"
}

{:ok, user} = ElixirLokaliseApi.TeamUsers.update(team_id, user_id, data)

user.user_id

Delete team user

Doc

{:ok, resp} = ElixirLokaliseApi.TeamUsers.delete(team_id, user_id)

resp.team_user_deleted