You are here

public function Galleries::galleriesGetList in Flickr API Integration 8

Returns the galleries curated by the specified user.

Parameters

string $nsid: NSID of the user whose photoset list you want.

int $page: Page.

bool $cacheable: Cacheable.

Return value

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

File

src/Service/Galleries.php, line 117

Class

Galleries
Class Galleries.

Namespace

Drupal\flickr_api\Service

Code

public function galleriesGetList($nsid, $page = 1, $cacheable = TRUE) {
  $args = [
    'user_id' => $nsid,
    'page' => $page,
  ];
  $response = $this->client
    ->request('flickr.galleries.getList', $args, $cacheable);
  if ($response) {
    return $response['galleries']['gallery'];
  }
  return FALSE;
}