code: public TotalViews getTotalViews(Date date) throws JinxException {
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.stats.getTotalViews");
      if (date != null) {
        params.put("date", JinxUtils.formatDateAsYMD(date));
      }
      return jinx.flickrGet(params, TotalViews.class);
    }
docs: Get the overall view counts for an account
  
  This method requires authentication with 'read' permission.
  
  @param date stats will be returned for this date. Optional.
  @return the overall view counts for an account.
  @throws JinxException if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.stats.getTotalViews.html">flickr.stats.getTotalViews</a>