You are here

function flickr_galleries_getlist in Flickr 7

Returns the galleries curated by the specified user.

Parameters

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

Return value

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

1 call to flickr_galleries_getlist()
flickr_block_view in block/flickr_block.module
Implements hook_block_view().

File

./flickr.api.inc, line 182
Flickr API functions.

Code

function flickr_galleries_getlist($nsid, $page = 1) {
  $response = flickr_request('flickr.galleries.getList', array(
    'user_id' => $nsid,
    'page' => $page,
  ));
  if ($response) {
    return $response['galleries']['gallery'];
  }
  return FALSE;
}