public Photos getPhotos(String galleryId, EnumSet<JinxConstants.PhotoExtras> extras) throws JinxException {
    JinxUtils.validateParams(galleryId);
    Map<String, String> params = new TreeMap<>();
    params.put("method", "flickr.galleries.getPhotos");
    params.put("gallery_id", galleryId);
    if (!JinxUtils.isNullOrEmpty(extras)) {
      params.put("extras", JinxUtils.buildCommaDelimitedList(extras));
    }
    return jinx.flickrGet(params, Photos.class);
  }
public Photos getPhotos ( String galleryId , EnumSet < JinxConstants . PhotoExtras > extras ) throws JinxException { JinxUtils . validateParams ( galleryId ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.galleries.getPhotos" ) ; params . put ( "gallery_id" , galleryId ) ; if ( ! JinxUtils . isNullOrEmpty ( extras ) ) { params . put ( "extras" , JinxUtils . buildCommaDelimitedList ( extras ) ) ; } return jinx . flickrGet ( params , Photos . class ) ; }
Return the list of photos for a gallery
<br>
This method does not require authentication.
<br>
Note: The Flickr documentation includes a per_page and page argument. However, galleries are limited to
18 photos, and Flickr ignores the page and per_page parameters. Since they are not actually used, Jinx
does not support them.
<br>

@param galleryId Required. The ID of the gallery of photos to return.
@param extras    Optional. Extra information to fetch for the primary photo.
@return photos in the gallery.
@throws JinxException if required parameters are null or empty, or if there are any errors.
@see <a href="https://www.flickr.com/services/api/flickr.galleries.getPhotos.html">flickr.galleries.getPhotos</a>