function flickr_people_findbyusername in Flickr 7
Return a user's NSID, given their username.
Parameters
string $username: Username to look for.
Return value
array Response from the flickr method flickr.people.findByUsername. (https://www.flickr.com/services/api/flickr.people.findByUsername.html)
1 call to flickr_people_findbyusername()
- flickr_user_find_by_identifier in ./
flickr.inc - Tries to match an 'identifier' onto a flickr nsid.
File
- ./
flickr.api.inc, line 257 - Flickr API functions.
Code
function flickr_people_findbyusername($username) {
$response = flickr_request('flickr.people.findByUsername', array(
'username' => $username,
));
if ($response) {
return $response['user'];
}
return FALSE;
}