code: public GalleryInfo create(String title, String description, String primaryPhotoId, boolean fullResult) throws JinxException {
      JinxUtils.validateParams(title, description);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.galleries.create");
      params.put("title", title);
      params.put("description", description);
      if (!JinxUtils.isNullOrEmpty(primaryPhotoId)) {
        params.put("primary_photo_id", primaryPhotoId);
      }
      if (fullResult) {
        params.put("full_result", "1");
      }
      return jinx.flickrPost(params, GalleryInfo.class);
    }
docs: Create a new gallery for the calling user.
  <br>
  This method requires authentication with 'write' permission.
  
  @param title          Required. The name of the gallery.
  @param description    Required. A short description for the gallery.
  @param primaryPhotoId Optiona. The first photo to add to your gallery.
  @param fullResult     Get the result in the same format as galleries.getList
  @return information about the created gallery.
  @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.galleries.create.html">flickr.galleries.create</a>