/** * @param string $id * @return \FlickrDownloadr\Photoset\Photoset */ public function findOne($id) { $params = ['photoset_id' => $id]; $response = $this->flickrApi->call('flickr.photosets.getInfo', $params); $data = $response['photoset']; return new Photoset($data); }
/** * @param type $pageNumber * @param array $params * @return array API response with all metadata */ private function getPage($pageNumber, array $params) { $params['page'] = $pageNumber; $response = $this->flickrApi->call('flickr.photosets.getPhotos', $params); return $response; }