Awesome made those changes and things started to work. A couple questions I have 4000+ media entries I am changing the page index to get all of them. Page Size is there a limit in the api, I tried higher than 500 but still just returns 500.
What does processed_entries do?
$page_index=1;
$pager->pageSize = 500;
$processed_entries=0;