code: public Contacts getPublicList(String userId, int page, int perPage) throws JinxException {
      JinxUtils.validateParams(userId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.contacts.getPublicList");
      params.put("user_id", userId);
      if (page > 0) {
        params.put("page", Integer.toString(page));
      }
      if (perPage > 0) {
        params.put("per_page", Integer.toString(perPage));
      }
      return jinx.flickrGet(params, Contacts.class);
    }
docs: Get the contact list for a user.
  <br>
  This method does not require authentication.
  
  @param userId  Required. The NSID of the user to fetch the contact list for.
  @param page    Optional. The page of results to return. If this argument is &le;= zero, it defaults to 1.
  @param perPage Optional. Number of photos to return per page. If this argument is &le;= zero, it defaults to 1000.
  The maximum allowed value is 1000.
  @return object containing contacts matching the parameters.
  @throws JinxException if required parameters are null or empty, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.contacts.getPublicList.html">flickr.contacts.getPublicList</a>