Post

1 follower Follow
0
Avatar

Cannot apply a limit on filter

I use latest Podio-PHP lib and I try to apply a limit on ::filter method:

`$items = PodioItem::filter(
1234,
   array(
     'filters' => array('category'=>array('a','b')),
     'limit' => 100
   )
);`

The number of filtered items without limit is 400.

With the call above, I get 400 items, regardless of provided limit. Is there something wrong in code above?

EDIT: I tried with no limit, and I get all items of target app (2000 items)? According to the documentation, default limit is 30.

Is the documentation is outdated or there's an issue in lib back-end?

Mathieu Smith

Please sign in to leave a comment.

1 comment

0
Avatar

Please consider that post closed. I based my toughts ont "filtered" value, but in fact, if I "count()" the values return in the object, I get the number of wanted data based on limit.

Thank you.

Mathieu Smith 0 votes