exporting workspace members into exel using api
Hi. I'm trying to make a script that exports all the members off a workspace into exel. I think Podio is a great tool, but I really miss some coding examples in your API documentation. Here's what im trying to do: <?php require_once'podio_connect.php'; $podio_data=new podio_connect(              $appid,             "$aptoken",             "$client_id",             "$client_secret"                      ); echo PodioItem::export($appid,"xlsx");     What should I do next? I get this error Fatal error: Uncaught PodioForbiddenError: "The app with id 4918595 does not have the right export on app with id 4918595" Request URL: http://api.podio.com/item/app/4918595/export/xls Request Body: null Stack Trace: #0 /var/www/uudanmark.dk/public_html/uucenter_oversigt/podio-php/lib/Podio.php(271): Podio::request('POST', '/item/app/49185...', Object(stdClass), Array) #1 /var/www/uudanmark.dk/public_html/uucenter_oversigt/podio-php/models/PodioItem.php(179): Podio::post('/item/app/49185...', Object(stdClass)) #2 /var/www/uudanmark.dk/public_html/uucenter_oversigt/stamkort_data.php(15): PodioItem::export('4918595', 'xls') #3 {main} thrown in /var/www/uudanmark.dk/public_html/uucenter_oversigt/podio-php/lib/Podio.php on line 238   Regards from Søren Nørup             ?>.

  • Hi Søren, Not all authentication methods are created equally. I believe excel export is limited to regular members and admin members of a workspace. This would mean that you can't use app authentication as the app doesn't have the proper rights. You can always check which rights you have: $app = PodioApp::get($appId); // Prints all rights: print_r($app->rights); // Check for specific right: if ($app->can('export')) { print "Yes, I have the right to export"; } So check the specific rights you have on that app using app authentication. If app auth doesn't give you the rights, you have to authenticate as a user. All the best, Andreas
This question is closed.