一条大河

变色龙伪原创 Api 使用指南

0.jpg

Api 地址

  • Method = POST

  • 【 基础版 API 】 https://chameleon.iddahe.com/api

  • 【 高级版 API 】 https://chameleon.iddahe.com/api-plus


请求参数

  • auth_key 授权码,联系作者授权

  • content 必须,待处理内容字符串

  • title 必须,待处理标题字符串

  • strategy 必须,伪原创策略 auto | lang | word (自动|互译|分词替换)

  • except 需要排除的关键词,多个词使用英文逗号隔开,没有请留空字符串

  • sub_title 必须 yes|no 联想标题,仅高级版

  • add_image 必须 yes | no 开启自动插图, 仅高级版

  • image_type 插图类型mn | dm | fj (美女|动漫|风景) add_image=yes 才会生效,仅高级版

  • keywords 强行插入关键词,多个词使用英文逗号隔开,没有请留空字符串,仅高级版


PHP 请求 API 案例

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',
    // 联想标题 yes|no
    'sub_titile' => 'yes',
    // 伪原创策略 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);


发表评论

◎发表您的看法、交流您的观点,保持友善言论。

搜索
近期留言
近期发表
站点标签
©
 iddahe.com / PHP函数速查 / 服务器资源 / 代理IP资源 / 咨询及反馈 / 需求定制 / 使用协议
一条大河(一会儿是风,一会儿是水) Z-BlogPHP 驱动 / Theme: Hipaper / RSS / Sitemap