public static void main(String[] args) {
String host = "https://data.06api.com";
String path = "/api.php";
String key = "{KEY}";
String type = "{API_TYPE}";
String method = "GET";
Map headers = new HashMap();
Map querys = new HashMap();
querys.put("key", key);
querys.put("type", type);
querys.put("sn", "{SN}");
try {
HttpResponse response = HttpUtils.doGet(host, path, method, headers, querys);
System.out.println(response.toString()); //get response body
System.out.println(EntityUtils.toString(response.getEntity()));
} catch (Exception e) {
e.printStackTrace();
}
}