public function Twitter::friendships_lookup in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::friendships_lookup()
- 7.5 twitter.lib.php \Twitter::friendships_lookup()
Returns the relationships of the authenticating user to the comma-separated list of up to 100 screen_names or user_ids provided.
Parameters
string $screen_name: A comma separated list of screen names.
string $user_id: A comma separated list of user IDs.
Return value
An array of user IDs and relationships.
See also
https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
File
- ./
twitter.lib.php, line 702 - 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_lookup($screen_name = '', $user_id = '') {
if (!empty($screen_name)) {
$params['screen_name'] = $screen_name;
}
if (!empty($user_id)) {
$params['user_id'] = $user_id;
}
return $this
->call('friendships/lookup', $params, 'GET');
}