code: public PhotoInfo getInfo(String photoId, String secret) throws JinxException {
      JinxUtils.validateParams(photoId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.getInfo");
      params.put("photo_id", photoId);
      if (!JinxUtils.isNullOrEmpty(secret)) {
        params.put("secret", secret);
      }
      return jinx.flickrGet(params, PhotoInfo.class);
      // sometimes Flickr sends back responses with "machine_tag":false rather than "machine_tag":0
      // so we need to work around this by fixing up the response
      // if the response is not fixed up, Gson cannot parse it
  //        String json = jinx.callFlickr(params, JinxConstants.Method.GET, true);
  //        json = json.replace(":false", ":0");
  //        return jinx.jsonToClass(json, PhotoInfo.class);
    }
docs: Get information about 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 get information for.
  @param secret  Optional. The secret for the photo. If the correct secret is passed then permissions checking is skipped.
  This enables the 'sharing' of individual photos by passing around the id and secret.
  @return object with available information for the photo.
  @throws JinxException if required parameters are null or empty, or if there are errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.getInfo.html">flickr.photos.getInfo</a>