Add to friend list add_to_list new Pixpulse_Client_Requ est item creat

1
2
3
4
5
6
7
8
// Add to friend list
$add_to_list = new Pixpulse_Client_Request('item', 'create');
$add_to_list->collection_id = $friend_list_id;
$add_to_list->title = 'Friend in list';
$add_to_list->friend_id = $friend_id ;
$client->addRequest($add_to_list);
$response = $client->request();