-
create()befriends the user specified in theidparameter with the authenticating user.Example 857. Creating friend
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->friendship->create('mynewfriend');
-
destroy()discontinues friendship with the user specified in theidparameter and the authenticating user.Example 858. Deleting friend
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->friendship->destroy('myoldfriend');
-
exists()tests if a friendship exists between the user specified in theidparameter and the authenticating user.Example 859. Checking friend existence
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->friendship->exists('myfriend');




