https://gl.yovyov.com/formal/getLoading 获取数据接口
返回说明 code 标识 count 总条数 data 返回数据
$account = 'xxx'; //获取账户
$key = 'xxx'; //获取秘钥
$post_data = array();
$post_data["account"] = $account;
$post_data["key"] = $key;
$post_data["limit"] = 20; //每页获取条数 默认20
$post_data["page"] = 1; //从第几页开
$post_data["tyid"] = 1; // 1系统数据过滤 2个人添加的数据过滤 3 系统数据+个人数据 4 所有数
$sign = md5($key . $post_data["account"]);
$post_data["sign"] = strtoupper($sign);
$url = 'https://gl.yovyov.com/formal/getQuery';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
var_dump($result);
$data = json_decode($result, true);
var_dump($data);
https://gl.yovyov.com/formal/getQuery 敏感词过滤接口
$account = 'xxx'; //获取账户
$key = 'xxx'; //获取秘钥
$post_data = array();
$post_data["account"] = $account;
$post_data["key"] = $key;
$post_data["tyid"] = 3; // 1系统数据过滤 2个人添加的数据过滤 3 系统数据+个人数据 4 所有数据
$post_data["content"] = '我们冷钢刀具专卖'; //需要过滤的内容
$sign = md5($key . $post_data["account"]);
$post_data["sign"] = strtoupper($sign);
$url = 'https://gl.yovyov.com/formal/getQuery';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
var_dump ($result);
$data = json_decode($result, true);
var_dump ($data);
https://gl.yovyov.com/formal/getDelete 删除接口
$account = 'xxx'; //获取账户
$key = 'xxx'; //获取秘钥
$post_data = array();
$post_data["account"] = $account;
$post_data["key"] = $key;
$post_data["content"] = '冷钢刀具专卖'; //删除词条
$sign = md5($key . $post_data["account"]);
$post_data["sign"] = strtoupper($sign);
$url = 'https://gl.yovyov.com/formal/getDelete';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
var_dump ($result);
$data = json_decode($result, true);
var_dump ($data);
https://gl.yovyov.com/formal/getAdded 新增接口
$account = 'xxx'; //获取账户
$key = 'xxx'; //获取秘钥
$post_data = array();
$post_data["account"] = $account;
$post_data["key"] = $key;
$post_data["content"] = '冷钢刀具专卖'; //新增词条
$sign = md5($key . $post_data["account"]);
$post_data["sign"] = strtoupper($sign);
$url = 'https://gl.yovyov.com/formal/getAdded';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
var_dump ($result);
$data = json_decode($result, true);
var_dump ($data);