for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the strays/baidu-ai.
*
* (c) strays <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Strays\BaiDuAi\Language\Topic;
use Strays\BaiDuAi\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* 文章分类.
* @param string $title
* @param string $content
* @return string
public function send(string $title, string $content)
$body = [
'title' => $title,
'content' => $content,
];
return $this->httpPostJson('/rpc/2.0/nlp/v1/topic', $body);
}