You are here

public function Photosets::photosetsGetInfo in Flickr API Integration 8

Gets information about a photoset.

Parameters

string $photosetId: ID of the photoset to get information about.

bool $cacheable: Cacheable.

Return value

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

File

src/Service/Photosets.php, line 42

Class

Photosets
Class Photosets.

Namespace

Drupal\flickr_api\Service

Code

public function photosetsGetInfo($photosetId, $cacheable = TRUE) {
  $args = [
    'photoset_id' => $photosetId,
  ];
  $response = $this->client
    ->request('flickr.photosets.getInfo', $args, $cacheable);
  if ($response) {
    return $response['photoset'];
  }
  return FALSE;
}