Post

1 follower Follow
0
Avatar

get apps for space not working

I'm having some issues with the API in PHP.

I'm using user authentication and trying to get all apps as follows:

$podioOrgs = PodioOrganization::get_all(  );

foreach ($podioOrgs as $org) {

    foreach ($org->spaces as $space) {

        $spaceApps = PodioApp::get_for_space( $space->space_id);

    }

}

The problem is that get_for_spaces is coming back with garbage data. The resulting object has no app_id or name or anything.

Am I doing something wrong here?

Please help.

 

Andreas Huttenrauch Answered

Please sign in to leave a comment.

4 comments

0
Avatar

Thanks Andreas.

You rock! That's super duper service.

Everything is working as expected now.

Andreas Huttenrauch 0 votes
Comment actions Permalink
0
Avatar

Hey Andreas,

I'm having another issue now:

$itemFile = PodioItem::xlsx( $app->app_id ) is returning an error:

Fatal error: Uncaught exception 'PodioNotFoundError' with message 'No matching operation could be found. The path '/item/app/2472805/xlsx/' was not found..' in /var/www/podio_backup/podio-php-master/lib/PodioAPI.php:218
Stack trace:
#0 /var/www/podio_backup/podio-php-master/lib/PodioAPI.php(248): Podio::request('POST', '/item/app/24728...', Array, Array)
#1 /var/www/podio_backup/podio-php-master/models/PodioItem.php(179): Podio::post('/item/app/24728...', Array)
#2 /var/www/podio_backup/podio_backup.php(54): PodioItem::xlsx(2472805)
#3 {main}
thrown in /var/www/podio_backup/podio-php-master/lib/PodioAPI.php on line 218

Andreas Huttenrauch 0 votes
Comment actions Permalink