code: public Photos getPopularPhotos(Date date, JinxConstants.PopularPhotoSort sort, Integer perPage, Integer page) throws JinxException {
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.stats.getPopularPhotos");
      if (date != null) {
        params.put("date", JinxUtils.formatDateAsYMD(date));
      }
      if (sort != null) {
        params.put("sort", sort.toString());
      }
      if (perPage != null) {
        params.put("per_page", perPage.toString());
      }
      if (page != null) {
        params.put("page", page.toString());
      }
      return jinx.flickrGet(params, Photos.class);
    }
docs: List the photos with the most views, comments or favorites
  
  This method requires authentication with 'read' permission.
  
  @param date    stats will be returned for this date. Optional.
  @param sort    order in which to sort returned photos. Defaults to views. Optional.
  @param perPage number of referrers to return per page. If this argument is omitted, it defaults to
  25. The maximum allowed value is 100. Optional.
  @param page    page of results to return. If this argument is omitted, it defaults to 1. Optional.
  @return photos with the most views, comments, or favorites.
  @throws JinxException if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html">flickr.stats.getPopularPhotos</a>