code: public Stats getPhotosetStats(Date date, String photosetId) throws JinxException {
      JinxUtils.validateParams(date, photosetId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.stats.getPhotosetStats");
      params.put("date", JinxUtils.formatDateAsYMD(date));
      params.put("photoset_id", photosetId);
      return jinx.flickrGet(params, Stats.class);
    }
docs: Get the number of views on a photoset for a given date.
  
  This method requires authentication with 'read' permission.
  
  @param date       stats will be returned for this date. Required.
  @param photosetId id of the photoset to get stats for. Required.
  @return number of views on a photoset for a given date.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.stats.getPhotosetStats.html">flickr.stats.getPhotosetStats</a>