Post

1 follower Follow
0
Avatar

PodioItem::filter Only working on one app not on my second app

Podio::setup($client_id, $client_secret);
Podio::authenticate_with_app($app_id, $app_token);
this is first app code which is working

$getItems = PodioItem::filter($app_id, array(
'filters' => array(
'180981088' => $getEmail
),
));
echo '<pre>';
var_dump($getItems);
die();

When i run this code and var dump i got details about specific user email but on second app i used the same code it's not working

First App response Not showing full response

object(PodioItemCollection)#43 (4) {
  ["filtered"]=>
  int(1)
  ["total"]=>
  int(5)
  ["__items":"PodioCollection":private]=>
  array(1) {
    [0]=>
    object(PodioItem)#25 (5) {
      ["__attributes":"PodioObject":private]=>
      array(16) {
        ["item_id"]=>
        int(1000639192)
        ["external_id"]=>
        NULL
        ["title"]=>
        string(11) "Hamza Akbar"
        ["link"]=>....


This is Second App Code which is not working
Podio::setup($advertClient_id, $advertClient_secret);
Podio::authenticate_with_app($advertApp_id, $advertApp_token);

$pID = strval(61);
var_dump($pID);
echo '<br>';
$getItems = PodioItem::filter($advertApp_id, array(
'filters' => array(
'181750443' => $pID just for show you -->> OR '181750443' => "61"
),
));

echo '<pre>';
var_Dump($getItems);
die();

Second App response
object(PodioItemCollection)#25 (4) {
  ["filtered"]=>
  int(0)
  ["total"]=>
  int(9)
  ["__items":"PodioCollection":private]=>
  array(0) {
  }
  ["__belongs_to":"PodioCollection":private]=>
  NULL
}
Hamza Akbar

Please sign in to leave a comment.