friends_search new Pixpulse_Client_Requ est friend search Friends sect

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
$friends_search = new Pixpulse_Client_Request('friend', 'search'); //Friends section
$friends_search->user_id = $id;
$friends_search->setAttribute('limit', '14');
$friends_search->setAttribute('orderby', 'last_changed');
$friends_search->setAttribute('sort', 'DESC');
$client->addRequest($friends_search);
$is_friend = new Pixpulse_Client_Request('friend', 'search'); // Get is current User is friend ?
$is_friend->user_id = $id;
$is_friend->friend_id = User::current_user()->id();
// $is_friend->setServiceName('is_friend');
$client->addRequest($is_friend);