所以我有这个代码
$yt->setMajorProtocolVersion(2);
$activityFeed = $yt->getActivityForUser("google");
printActivityFeed($activityFeed);
function printActivityFeed($activityFeed) {
foreach($activityFeed as $activityEntry) {
$author = $activityEntry->getAuthorName();
$gr = $activityEntry->getRating();
}
}
为什么即使评论竖起大拇指/不赞成,$gr
总是/不存在?null