Using PHP Podio library, cannot get ratings data via PodioItem::get($id) -
i using latest php podio library (4.0.1) , using podioitem:get() item app. have found can retrieve 'likes' (i.e. heart) ratings, cannot retrieve voting ratings (e.g. 5 star or custom vote created). seems problem newly created apps or adding rating fields older apps. can rating data apps have had rating field awhile, perhaps since before 4.0 library change not sure.
besides normal access attempts in code, tried printing out ratings structure using print_r , var_dump , getting no data other entries 'likes'.
any thoughts why can' retrieve data part of item get() call?
podio-php don't have access votes in current release, i've added library. pull latest dev version github (4.0.2 not enough). commit here: https://github.com/podio/podio-php/commit/fd4f3d66307a26d0ecef961467e8aac47df759c7
then can request votes
using fields option so:
$item = podioitem::get($you_item_id, array('fields' => 'votes')); var_dump($item->votes);
Comments
Post a Comment