Project items
List project items
Section titled “List project items”Use project_items to retrieve items belonging to a project:
items = client.project_items('project-id')
items.each do |item| puts "#{item.id}: #{item.name}"endReturns a LokaliseApiNext::Collections::Vantage::ProjectItems collection containing LokaliseApiNext::Models::Vantage::ProjectItem objects.
You can access individual item attributes:
item = items.first
puts item.idputs item.project_idputs item.nameputs item.created_atputs item.updated_atPagination
Section titled “Pagination”The project_items method supports cursor-based pagination.
Retrieve up to 20 items:
items = client.project_items('project-id', limit: 20)To retrieve the next page, pass the cursor returned by the previous response:
if items.more? next_page = client.project_items( 'project-id', limit: 20, after: items.cursor )end