public function Twitter::friendships_show in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::friendships_show()
- 7.6 twitter.lib.php \Twitter::friendships_show()
Returns detailed information about the relationship between two arbitrary users.
Parameters
mixed $source_id: The user ID or the screen name of the subject user.
mixed $target_id: The user ID or the screen name of the target user.
Return value
An array of numeric user IDs.
See also
https://dev.twitter.com/docs/api/1.1/get/friendships/show
File
- ./
twitter.lib.php, line 875 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function friendships_show($source_id, $target_id) {
if (is_numeric($source_id)) {
$params['source_id'] = $source_id;
}
else {
$params['source_screen_name'] = $source_id;
}
if (is_numeric($target_id)) {
$params['target_id'] = $target_id;
}
else {
$params['target_screen_name'] = $target_id;
}
return $this
->call('friendships/show', $params, 'GET');
}