2012-05-12 7 views
1

私はグーグルプラスに承認されたusers(individual)likes(+1)eventsfriends、およびuserがGoogleグループの詳細またはリストに加わりました。グーグルプラス認定ユーザー+1(のようなもの)、イベント、グループリストまたは詳細を取得するには?

私はphp(magento)でGoogleのソーシャルコネクタを開発しています。私はGoogleのユーザー認証を完了しました。

+0

は、あなたの質問ビットを明確にすることはできますか?私は助けたいと思っていますが、あなたが探している特定のデータを理解できません。 – mimming

答えて

2

このアクティビティを取得するには、リスト のようなFacebookのページに似てもuはperticularアクティビティコメントリストの取得および+ 1ed

$optParams = array('maxResults' => 100); 
    $activities = $plus->activities->listActivities('me', 'public', $optParams); 
    $activityMarkup = ''; 

    foreach($activities['items'] as $activity) { 
     $comments = $plus->comments->listComments($activity['id'],$optParams); 
foreach($comments['items'] as $comment) { 
    print "<br />{$comment['id']}, {$comment['object']['content']}\n"; 
    echo "+1<br />"; 
    } 
$plusoners = $plus->people->listByActivity($activity['id'], "plusoners", $optParams); 
foreach($plusoners['items'] as $person) { 
    print "{$person['displayName']} +1'ed the post\n<br />"; 
} 
関連する問題