function flickr_user_find_by_username in Flickr 6
Same name and namespace in other branches
- 5 flickr.inc \flickr_user_find_by_username()
Lookup an nsid for a username.
Parameters
$username: username to look for
Return value
response from the flickr method flickr.people.findByUsername (http://www.flickr.com/services/api/flickr.people.findByUsername.html)
1 call to flickr_user_find_by_username()
- flickr_user_find_by_identifier in ./
flickr.inc - Tries to match an 'identifier' onto a flickr nsid.
File
- ./
flickr.api.inc, line 198
Code
function flickr_user_find_by_username($username) {
$response = flickr_request('flickr.people.findByUsername', array(
'username' => $username,
));
if ($response) {
return $response['user'];
}
return FALSE;
}