public PhotoSizes getSizes(String photoId) throws JinxException {
    JinxUtils.validateParams(photoId);
    Map<String, String> params = new TreeMap<>();
    params.put("method", "flickr.photos.getSizes");
    params.put("photo_id", photoId);
    return jinx.flickrGet(params, PhotoSizes.class);
  }
public PhotoSizes getSizes ( String photoId ) throws JinxException { JinxUtils . validateParams ( photoId ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.photos.getSizes" ) ; params . put ( "photo_id" , photoId ) ; return jinx . flickrGet ( params , PhotoSizes . class ) ; }
Returns the available sizes for a photo. The calling user must have permission to view the photo.
<br>
This method does not require authentication.

@param photoId Required. The id of the photo to fetch permissions for.
@return object with available size information.
@throws JinxException if the photo id is null or empty, or if there are any errors.
@see <a href="https://www.flickr.com/services/api/flickr.photos.getSizes.html">flickr.photos.getSizes</a>