Post

2 followers Follow
0
Avatar

How to get all apps in a space w.r.t "rigths"?

I used PodioApp::get_all( $attributes = array() ); [https://developers.podio.com/doc/applications/get-all-apps-5902728] to get all apps.
but it returns only 100 apps while the space containes more than that limit, how did I get all apps?
thanks.

Muhammad Yasar K

Please sign in to leave a comment.

14 comments

0
Avatar

Hi Muhammad,

Please use the parameters order and limit to paginate through the results.

Best,
Andreas

Andreas Garnæs 0 votes
0
Avatar

Hi Andreas,
Thanks for your reply.
I used those parameters, but it still returns only 100 apps. I didn't get the apps from 101th one. :(

Muhammad Yasar K 0 votes
0
Avatar

Could you share the requests you're making please (full URL, HTTP method, query parameters and post body)?

Andreas Garnæs 0 votes
0
Avatar

$attributes = array("referenceable_in_org" => intval(-id-),"target_space_id"=>intval(-id-),"order"=>"name", "limit" => 100);

PodioApp::get_all( $attributes );

Muhammad Yasar K 0 votes
0
Avatar

You should then make a second call with "offset" => 100 to get the next 100.

Andreas Garnæs 0 votes
0
Avatar

Sadly, It returns the same list of apps.
"offset" is not working. :(

Muhammad Yasar K 0 votes
0
Avatar

If you add the query parameter fields=rights to the request, you can get the rights :)

Andreas Garnæs 0 votes
0
Avatar

I just tried GET https://api.podio.com/app/space/SPACE_ID?fields=rights and it is working for me. Are you sure you're making the right request?

Andreas Garnæs 0 votes