Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, groups} = ElixirLokaliseApi.TeamUserGroups.all(team_id, page: 3, limit: 2)
group = hd(groups.items)
group.group_id
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.find(team_id, group_id)
group.group_id
data = %{
name: "ExGroup",
is_reviewer: true,
is_admin: false,
languages: %{
reference: [],
contributable: [640]
}
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.create(team_id, data)
group.name
data = %{
name: "ExGroup Updated",
is_reviewer: true,
is_admin: false,
languages: %{
reference: [],
contributable: [640]
}
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.update(team_id, group_id, data)
group.name
data = %{
projects: [project_id]
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.add_projects(team_id, group_id, data)
assert group.group_id
data = %{
projects: [project_id]
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.remove_projects(team_id, group_id, data)
group.group_id
data = %{
users: [user_id]
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.add_members(team_id, group_id, data)
group.group_id
data = %{
users: [user_id]
}
{:ok, group} = ElixirLokaliseApi.TeamUserGroups.remove_members(team_id, group_id, data)
group.group_id
{:ok, resp} = ElixirLokaliseApi.TeamUserGroups.delete(team_id, group_id)
resp.group_deleted