Alternative way with example
- Get all apps user has access to
- Loop over apps and get items (also don't forget to handle offset and limits)
Docs used:
https://developers.podio.com/doc/applications/get-all-apps-5902728
https://developers.podio.com/doc/items/filter-items-4496747
Sorry, but example is in Ruby and not C#. Main idea will remain same and won't depend on programming language used :)
begin
Podio.client.authenticate_with_credentials(login, password)
apps = Podio::Application.find_all_for_current_user({'text' => 'Deliverables'})
apps.select! {|app| app.name == 'Deliverables'} # select only full name match
apps.select! {|app| app.status == 'active'} # filter out inactive (archived) apps
options = {'limit' => 30, 'offset' => 0}
filter = {:last_edit_on => {:from => '-7d', :to => '+0d'}} # as example, work with most recent items only
apps.each do |app|
puts "Working with app: '#{app.config['name']}' from workspace_id #{app.space_id}"
all_found_items = []
result = Podio::Item.find_by_filter_values(app.app_id, filter, options)
puts "Found #{result.count} items matching filter #{filter}"
all_found_items += result.all
while all_found_items.length < result.count
options['offset'] = all_found_items.length
result = Podio::Item.find_by_filter_values(app.app_id, filter, options)
all_found_items += result.all
end
all_found_items.each_with_index do |item, i|
puts "\t#{i+1}: #{item.title}"
end
end
rescue Podio::PodioError => ex
puts ex
end