Chat问答类接口(对话API-自动回复)

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIfdp
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&process=0');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIfdp
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&process=0'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIfdp
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&process=0";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIfdp
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&process=0",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

Chat问答类接口(对话API-自定义回复)

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIf
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&typeId=0');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIf
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&typeId=0'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIf
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&typeId=0";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/robotIf
 ?appkey=APIKEY&threadId=会话id&userId=用户id&robotHashCode=机器人id&platformConnType=渠道编号&receiverId=版本编号
 &sendTime=提问时间&content=问题内容&typeId=0",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

标准分词

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SP?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SP?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SP?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SP?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

词性标注

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_POST?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_POST?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_POST?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_POST?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

敏感词识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SWR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SWR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SWR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SWR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

地名识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PNR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PNR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PNR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PNR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

中文人名识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_CNR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_CNR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_CNR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_CNR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

机构识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_MI?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_MI?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_MI?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_MI?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

关键词识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_KR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_KR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_KR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_KR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

近义词识别

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

文本推荐

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TR?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TR?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TR?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TR?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

文本短语提取

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TPE?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TPE?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TPE?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_TPE?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

自动摘要提取

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_AAE?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_AAE?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_AAE?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_AAE?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

精准摘要提取

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PAE?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PAE?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PAE?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_PAE?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

情感分析

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SA?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SA?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SA?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_SA?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

情绪分析

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_EA?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_EA?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_EA?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/aipNlp_EA?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

知识图谱关系分析

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/cxindex?appkey=APIKEY&contents=输入内容');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/cxindex?appkey=APIKEY&contents=输入内容'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/cxindex?appkey=APIKEY&contents=输入内容";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/cxindex?appkey=APIKEY&contents=输入内容",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

实体维护

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addNationword?appkey=APIKEY&keyword=新增词组');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addNationword?appkey=APIKEY&keyword=新增词组'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addNationword?appkey=APIKEY&keyword=新增词组";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addNationword?appkey=APIKEY&keyword=新增词组",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

关系维护

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addRelativeword?appkey=APIKEY&keyword=新增词组');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addRelativeword?appkey=APIKEY&keyword=新增词组'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addRelativeword?appkey=APIKEY&keyword=新增词组";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addRelativeword?appkey=APIKEY&keyword=新增词组",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

属性维护

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addAttributive?appkey=APIKEY&keyword=新增词组');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addAttributive?appkey=APIKEY&keyword=新增词组'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addAttributive?appkey=APIKEY&keyword=新增词组";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/robotIfController.ehtm?ehtm_page=/module/setting/addAttributive?appkey=APIKEY&keyword=新增词组",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

创建房间

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/room?channelName=房间名称&mode=2&uid=房间创建者的用户ID');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/room?channelName=房间名称&mode=2&uid=房间创建者的用户ID'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/room?channelName=房间名称&mode=2&uid=房间创建者的用户ID";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/room?channelName=房间名称&mode=2&uid=房间创建者的用户ID",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

查询房间信息

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

删除房间

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/room?cid=房间 ID&cname=房间名称",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

创建云端录制

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/cloudrecord/submit
?cid=房间 ID&recordConfig=录制模式&streamSubscribe=录制订阅配置&detect=内容安全审核配置&layoutConfig=录制布局配置');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/cloudrecord/submit
?cid=房间 ID&recordConfig=录制模式&streamSubscribe=录制订阅配置&detect=内容安全审核配置&layoutConfig=录制布局配置'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/cloudrecord/submit
?cid=房间 ID&recordConfig=录制模式&streamSubscribe=录制订阅配置&detect=内容安全审核配置&layoutConfig=录制布局配置";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/cloudrecord/submit
?cid=房间 ID&recordConfig=录制模式&streamSubscribe=录制订阅配置&detect=内容安全审核配置&layoutConfig=录制布局配置",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

停止录制任务

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/cloudrecord/stop?cid=房间 ID&taskId=任务唯一标识符');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/cloudrecord/stop?cid=房间 ID&taskId=任务唯一标识符'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/cloudrecord/stop?cid=房间 ID&taskId=任务唯一标识符";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/cloudrecord/stop?cid=房间 ID&taskId=任务唯一标识符",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

查询云端录制文件信息

PHP
Python
Java
jQuery
<?php
header("Content-Type: text/html; charset=utf-8");  		
$data = file_get_contents ('https://www.88qun.cn/v2/api/cloudrecord/file?channelId=房间 ID');//API接口
	  
      $json = json_decode($data,true);//将json解析成数组
      if($json['code'] == 200){ //判断状态码
		  print_r($json); //打印数组
	}else{	
		echo "返回错误,状态消息:".$json['msg'];
	  }
?>
# -*- coding: utf-8 -*-
import sys, urllib, urllib2, json

url = 'https://www.88qun.cn/v2/api/cloudrecord/file?channelId=房间 ID'

req = urllib2.Request(url)

resp = urllib2.urlopen(req)
content = resp.read()
if(content):
    print(content)
String httpUrl = "https://www.88qun.cn/v2/api/cloudrecord/file?channelId=房间 ID";
 
String jsonResult = request(httpUrl);
System.out.println(jsonResult);

/**
 * @param urlAll
 *            :请求接口
 * @param httpArg
 *            :参数
 * @return 返回结果
 */
public static String request(String httpUrl, String httpArg) {
    BufferedReader reader = null;
    String result = null;
    StringBuffer sbf = new StringBuffer();
    httpUrl = httpUrl + "?" + httpArg;

    try {
        URL url = new URL(httpUrl);
        HttpURLConnection connection = (HttpURLConnection) url
                .openConnection();
        connection.setRequestMethod("GET");
        InputStream is = connection.getInputStream();
        reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
        String strRead = null;
        while ((strRead = reader.readLine()) != null) {
            sbf.append(strRead);
            sbf.append("\r\n");
        }
        reader.close();
        result = sbf.toString();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return result;
}
//页面需引入jquery库
$(document).ready(function(){
  $("button").click(function(){
    $.get("https://www.88qun.cn/v2/api/cloudrecord/file?channelId=房间 ID",
 
    function(data,status){
		console.log(data);
		$('#result').append(JSON.stringify(data)); //返回内容绑定到ID为result的标签
        alert("状态码:" + data.code + "\n消息:" + data.msg);
    });
  });
});

开发技术支持

       热线电话:4007999900
       技术合作:13601083250
       本地支持:上海 • 北京 • 江苏 • 重庆
       海外支持:日本(东京)