I’ve been developing a small tool to assist in some small tasks to streamline how we work with them. The PHP library has been giving me something that I can’t seem to figure out.
Workspaces/Login/User info can be fetched. No problemo. I can get a taskcount also. However, when I try to fetch an actual set of Tasks it will not return any results. Moreover, the explorer will return the desired set.
I’ve tried swapping a personal access token to oAuth, no difference.
I’ve tried taking out as many fields/args to that call but no results.
While going through the options I found the iterator_type. When I changed it to false it gave me back results. It seems like, but this is a wild guess – without diving deeper to be honest because the docs are badly documentated and nearly half the code is left unhinted making it difficult to read and having to step through to make sense… – that the ItemIterator is not interfacing correctly with CollectionPageIterator to trigger the protected function getNext() that actually performs the $client->get() call.
If you change iterator_type to false, then it will straight up request the call without the Collection class.