public function People::peopleGetInfo in Flickr API Integration 8
Get information about a user.
Parameters
string $nsid: The Flickr user's NSID.
bool $cacheable: Cacheable.
Return value
array Array with person's info from flickr.people.getInfo. (https://www.flickr.com/services/api/flickr.people.getInfo.html) or FALSE on error.
File
- src/
Service/ People.php, line 43
Class
- People
- Class People.
Namespace
Drupal\flickr_api\ServiceCode
public function peopleGetInfo($nsid, $cacheable = TRUE) {
$args = [
'user_id' => $nsid,
];
$response = $this->client
->request('flickr.people.getInfo', $args, $cacheable);
if ($response) {
return $response['person'];
}
return FALSE;
}