0
如何從格式json或數組獲取podio api的響應,但不是對象? 我用波迪奧-PHP(https://github.com/podio/podio-php)如何從格式json或數組獲取來自podio api的響應,而不是對象?
我的代碼
Podio::setup(CLIENT_ID_PODIO, CLIENT_SECRET_PODIO);
$oauth = Podio::is_authenticated();
Podio::authenticate_with_app(111111,
'bergbttyjra74d5afgrfhgrh781e70');
//$items = PodioItem::filter(111111);
$item = PodioItem::filter(111111, array(
'filters' => array(
'created_on' => array(
"from" => "2017-10-09 00:00:00",
"to" => "2017-10-19 23:59:59"
)
),
));
// print_r($item);// output object
// how next ?
這有什麼錯對象? – ceejayoz
我不知道如何從這個PodioByLine對象([__attributes:PodioObject:private] => Array([type] => user [id] => 4286469 [avatar_type] => file [avatar_id] => 422384899 [image] => Array([hosted_by] => podio [hosted_by_humanized_name] => Podio [thumbnail_link] => https://d2cmuesa4snpwn.cloudfront.net/public/422384899 [link] => https://d2cmuesa4snpwn.cloudfront .net/public/422384899 [file_id] => 422384899 [external_file_id] => [link_target] => _blank)[name] => FGfwegf fegfe –
那麼閱讀文檔?http://podio.github.io/podio-php/objects/ – ceejayoz