public function People::peopleFindByAlias in Flickr API Integration 8
Return a user's NSID, given their alias.
Parameters
string $alias: Username to look for.
bool $cacheable: Cacheable.
Return value
array Response from the flickr method flickr.people.findByUsername. (https://www.flickr.com/services/api/flickr.people.findByUsername.html)
File
- src/Service/ People.php, line 103 
Class
- People
- Class People.
Namespace
Drupal\flickr_api\ServiceCode
public function peopleFindByAlias($alias, $cacheable = TRUE) {
  $args = [
    'url' => 'https://www.flickr.com/photos/' . $alias,
  ];
  $response = $this->client
    ->request('flickr.people.findByUsername', $args, $cacheable);
  if ($response && $response['stat'] == 'ok') {
    return $response['user'];
  }
  return FALSE;
}