code: public Domains getCollectionDomains(Date date, String collectionId, Integer perPage, Integer page) throws JinxException {
      JinxUtils.validateParams(date);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.stats.getCollectionDomains");
      params.put("date", JinxUtils.formatDateAsYMD(date));
      if (!JinxUtils.isNullOrEmpty(collectionId)) {
        params.put("collection_id", collectionId);
      }
      if (perPage != null) {
        params.put("per_page", perPage.toString());
      }
      if (page != null) {
        params.put("page", page.toString());
      }
      return jinx.flickrGet(params, Domains.class);
    }
docs: Get a list of referring domains for a collection
  
  Authentication
  
  This method requires authentication with 'read' permission.
  
  @param date         stats will be returned for this date. Required.
  @param collectionId id of the collection to get stats for. If not provided,
  stats for all collections will be returned. Optional.
  @param perPage      number of domains to return per page.
  If this argument is omitted, it defaults to 25.
  The maximum allowed value is 100. Optional.
  @param page         the page of results to return. If this argument is omitted, it defaults to 1. Optional.
  @return referring domains for a collection.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html">flickr.stats.getCollectionDomains</a>