You are here

public function Galleries::galleriesGetInfo in Flickr API Integration 8

Returns info about a given gallery.

Parameters

string $id: NSID of the gallery whose photos you want.

array $otherArgs: Additional args.

bool $cacheable: Cacheable.

Return value

array Response from the flickr method flickr.gallery.getInfo. (https://www.flickr.com/services/api/flickr.gallery.getInfo.html)

File

src/Service/Galleries.php, line 44

Class

Galleries
Class Galleries.

Namespace

Drupal\flickr_api\Service

Code

public function galleriesGetInfo($id, array $otherArgs = [], $cacheable = TRUE) {
  $args = [
    'gallery_id' => $id,
  ];
  $args = array_merge($args, $otherArgs);
  $response = $this->client
    ->request('flickr.galleries.getInfo', $args, $cacheable);
  if ($response) {
    return $response['gallery'];
  }
  return FALSE;
}