Permalink
Browse files

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?
  • Loading branch information...
scotthorn committed May 19, 2014
1 parent 3a4ee33 commit 9f4fc78d58ccc94c5c221dcc74e63aa31985c900
Showing with 2 additions and 2 deletions.
  1. +2 −2 phpFlickr.php
View
@@ -1322,9 +1322,9 @@ function photosets_getInfo ($photoset_id) {
return $this->parsed_response ? $this->parsed_response['photoset'] : false;
}
function photosets_getList ($user_id = NULL) {
function photosets_getList ($user_id = NULL, $page = NULL, $per_page = NULL, $primary_photo_extras) {
/* https://www.flickr.com/services/api/flickr.photosets.getList.html */
$this->request("flickr.photosets.getList", array("user_id" => $user_id));
$this->request("flickr.photosets.getList", array("user_id" => $user_id, 'page' => $page, 'per_page' => $per_page, 'primary_photo_extras' => $primary_photo_extras));
return $this->parsed_response ? $this->parsed_response['photosets'] : false;
}

0 comments on commit 9f4fc78

Please sign in to comment.