public function Photos::photosGetInfo in Flickr API Integration 8
Get information about a photo.
Parameters
string $photo_id: ID of the photo to get info about.
bool $cacheable: Cacheable.
Return value
array|bool Response from the flickr method flickr.photos.getInfo.. (https://www.flickr.com/services/api/flickr.photos.getInfo.html)
File
- src/
Service/ Photos.php, line 42
Class
- Photos
- Class Photos.
Namespace
Drupal\flickr_api\ServiceCode
public function photosGetInfo($photo_id, $cacheable = TRUE) {
$args = [
'photo_id' => $photo_id,
];
$response = $this->client
->request('flickr.photos.getInfo', $args, $cacheable);
if ($response) {
return $response['photo'];
}
return FALSE;
}