Api 地址
method=post
基础版:https://chameleon.iddahe.com/api
高级版:https://chameleon.iddahe.com/api-plus
请求参数
auth_key 授权码,联系作者授权
content 必须,待处理内容字符串
title 必须,待处理标题字符串
except 可选,需要排除的关键词,多个词使用英文逗号隔开
strategy 可选,伪原创策略 auto|lang|word (自动|互译|分词替换)
add_image 可选,开启自动插图 yes|no,仅高级版
image_type 可选,插图类型(add_image=yes 才会生效) mn|dm|fj (美女|动漫|风景),仅高级版
keywords 可选,强行插入关键词,多个词使用英文逗号隔开,仅高级版
响应 JSON 数据
{
"title": "伪原创后标题",
"content": "伪原创后内容",
}
PHP Demo
function postman($data = array())
{
$api = 'http://chameleon.iddahe.com/api-plus';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_USERAGENT, "HCT");
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$output = curl_exec($ch);
curl_close($ch);
$output = json_decode($output, true);
return is_array($output) ? $output : false;
}
$data = array(
'auth_key' => 'xxx授xxx权xxx码xxx',
'title' => '标题字符串',
'content' => '内容字符串',
'except' => '锁词关键词,锁词关键词2,锁词关键词3',
'keywords' => '强插关键词,锁词关键词2,锁词关键词3',
// 伪原创策略 auto|lang|word (自动|互译|分词替换)
'strategy' => 'auto',
// 插入图片 yes|no
'add_image' => 'yes',
// 插入图片类型 mn|dm|fj (美女|动漫|风景)
'image_type' => 'fj',
);
$response = postman($data);
// array( "title": "伪原创后标题", "content": "伪原创后内容")
print_r($response);