I am trying to use the Podio API for the first time, and am trying to run the Hello World script on this page, but I keep getting this error:
Here is my code:
<?php
require_once './vendor/podio/podio-php/PodioAPI.php';
$client_id = "<my_id>";
$client_secret = "<my_secret>";
$app_id = "<my_app_id>";
$app_token = "<my_app_token>";
Podio::setup($client_id, $client_secret);
Podio::authenticate_with_app($app_id, $app_token);
$items = PodioItem::filter($app_id);
print "My app has ".count($items)." items";
?>
When I comment out the last three lines and just run this:
<?php
require_once './vendor/podio/podio-php/PodioAPI.php';
$client_id = "<my_id>";
$client_secret = "<my_secret>";
$app_id = "<my_app_id>";
$app_token = "<my_app_token>";
Podio::setup($client_id, $client_secret);
?>
The code runs without errors, So that leads me to believe that it is a problem with the app token, but I got the app token by following these instructions
What is wrong here?
When I got my api key, I put in a fake url, because I am running this test my computer. Could that be the issue?