1 follower Follow

API contacts by org error

I'm trying to retrieve the contacts of an org with the API

$contacts = PodioContact::get_for_org( $org->org_id );

but am getting this errror:

Fatal error: Uncaught exception 'PodioNotFoundError' with message 'No matching operation could be found. The path '/contact/org/207244/' 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(245): Podio::request('GET', '/contact/org/20...', Array) #1 /var/www/podio_backup/podio-php-master/models/PodioContact.php(133): Podio::get('/contact/org/20...', Array) #2 /var/www/podio_backup/podio_backup.php(41): PodioContact::get_for_org(207244) #3 {main} thrown in /var/www/podio_backup/podio-php-master/lib/PodioAPI.php on line 218

Can anyone please help? I know the orgID is correct as I use this object to successfully get workspaces and items.

Thanks in advance.


Andreas Huttenrauch Answered

Please sign in to leave a comment.

1 comment