Post

3 followers Follow
0
Avatar

PodioOrganizationMember

How can I get PodioOrganizationMember::get_for_org($org_id) to return more than 20 results?

I have tried passing limit and offset (e.g., PodioOrganizationMember::get_for_org( $org_id, array('limit' => 200)), but the same 20 results are returned regardless. My organization has 165 users, BTW.

Thanks

Ryan Macomber

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Ryan,

The Get Organization Members-endpoint does support limit and offset, but it looks like the PHP client does not: https://github.com/podio/podio-php/blob/eca10604157b880cad5528ccaf43b2c81d791860/models/PodioOrganizationMember.php#L28-L30

It's a matter of adding an $options parameter to that function, and use that to construct the URL like here: https://github.com/podio/podio-php/blob/39be54f95989aa629cdf4db39bd29ea6178bbfa6/models/PodioTask.php#L76-L77

Pull requests appreciated :)

Best,
Andreas

Andreas Garnæs 0 votes
Comment actions Permalink