code: public PhotoPerms getPerms(String photoId) throws JinxException {
      JinxUtils.validateParams(photoId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.getPerms");
      params.put("photo_id", photoId);
      return jinx.flickrGet(params, PhotoPerms.class);
    }
docs: Get permissions for a photo.
  <br>
  This method requires authentication with 'read' permission.
  
  @param photoId Required. The id of the photo to fetch permissions for.
  @return object with permissions for the photo.
  @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.getPerms.html">flickr.photos.getPerms</a>