Skip to content

Commit 9f4fc78

Browse files
committed
Expand photosets_getList with optional vars.
Flickr allows for a few extra things to pass in this function to limit what gets returned. I thought a previous version of this wrapper included them?
1 parent 3a4ee33 commit 9f4fc78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpFlickr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,9 +1322,9 @@ function photosets_getInfo ($photoset_id) {
13221322
return $this->parsed_response ? $this->parsed_response['photoset'] : false;
13231323
}
13241324

1325-
function photosets_getList ($user_id = NULL) {
1325+
function photosets_getList ($user_id = NULL, $page = NULL, $per_page = NULL, $primary_photo_extras) {
13261326
/* https://www.flickr.com/services/api/flickr.photosets.getList.html */
1327-
$this->request("flickr.photosets.getList", array("user_id" => $user_id));
1327+
$this->request("flickr.photosets.getList", array("user_id" => $user_id, 'page' => $page, 'per_page' => $per_page, 'primary_photo_extras' => $primary_photo_extras));
13281328
return $this->parsed_response ? $this->parsed_response['photosets'] : false;
13291329
}
13301330

0 commit comments

Comments
 (0)