// Path: summarize-response/src/main/java/com/apitore/banana/response/summarize/LabelResponseEntity.java
// @ApiModel
// @Data
// @EqualsAndHashCode(callSuper=false)
// public class LabelResponseEntity extends BaseResponseEntity {
// 
//   /**
//    *
//    */
//   private static final long serialVersionUID = -2477423610645950392L;
// 
//   @ApiModelProperty(required=true, value="Input word")
//   private String input;
//   @ApiModelProperty(required=true, value="Input num")
//   private String num;
//   @ApiModelProperty(required=false, value="Distances")
//   private List<LabelEntity> labels;
// 
// }


import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.response.summarize.LabelResponseEntity;
import com.apitore.banana.utils.UrlFormatter;
package com.apitore.banana.response.summarize.sample;






/**
 * @author Keigo Hattori
 */
public class Api20Url2LabelTfidfExample {

  static String ENDPOINT     = "https://api.apitore.com/api/20/url2label-tfidf/get";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate = new RestTemplate();
    Map<String, String> params = new HashMap<String, String>();
    params.put("access_token", ACCESS_TOKEN);
    params.put("url", "https://apitore.com/");
    params.put("num", "5");
    String url = UrlFormatter.format(ENDPOINT, params);

// Path: summarize-response/src/main/java/com/apitore/banana/response/summarize/LabelResponseEntity.java
// @ApiModel
// @Data
// @EqualsAndHashCode(callSuper=false)
// public class LabelResponseEntity extends BaseResponseEntity {
// 
//   /**
//    *
//    */
//   private static final long serialVersionUID = -2477423610645950392L;
// 
//   @ApiModelProperty(required=true, value="Input word")
//   private String input;
//   @ApiModelProperty(required=true, value="Input num")
//   private String num;
//   @ApiModelProperty(required=false, value="Distances")
//   private List<LabelEntity> labels;
// 
// }


// Path: summarize-response/src/main/java/com/apitore/banana/response/summarize/sample/Api20Url2LabelTfidfExample.java
import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.response.summarize.LabelResponseEntity;
import com.apitore.banana.utils.UrlFormatter;

package com.apitore.banana.response.summarize.sample;






/**
 * @author Keigo Hattori
 */
public class Api20Url2LabelTfidfExample {

  static String ENDPOINT     = "https://api.apitore.com/api/20/url2label-tfidf/get";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate = new RestTemplate();
    Map<String, String> params = new HashMap<String, String>();
    params.put("access_token", ACCESS_TOKEN);
    params.put("url", "https://apitore.com/");
    params.put("num", "5");
    String url = UrlFormatter.format(ENDPOINT, params);

    LabelResponseEntity response =