docs: public PhotoList<Photo> getPopularPhotos(Date date, StatsSort sort, int perPage, int page) throws FlickrException {
  
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_GET_POPULAR_PHOTOS);
          if (date != null) {
              parameters.put("date", String.valueOf(date.getTime() / 1000L));
          }
          if (sort != null) {
              parameters.put("sort", sort.name());
          }
          addPaginationParameters(parameters, perPage, page);
  
          Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
  
          return parsePopularPhotos(response);
      }