目前仅支持文本过滤
#安装
$ composer require topphp/topphp-huawei
<?php
use Topphp\TopphpHuawei\Moderation\ModerationText;
function ModerationText()
{
$result = ModerationText::text('haha 曹尼玛','key','secret');
var_dump($result);
}
<?php
public function testVodList()
{
$vodConfig = new VodConfig();
$vodConfig->setAk('');
$vodConfig->setSk('');
$vodConfig->setProjectId('');
$vodConfig->setVodHost('vod.cn-north-4.myhuaweicloud.com');
$vodClient = new VodClient($vodConfig);
$req = new QueryAssetListReq();
$rsp = $vodClient->queryAssetList($req);
echo $rsp->getBody();
}
public function testVodDetail()
{
$vodConfig = new VodConfig();
$vodConfig->setAk('');
$vodConfig->setSk('');
$vodConfig->setProjectId('');
$vodConfig->setVodHost('vod.cn-north-4.myhuaweicloud.com');
$vodClient = new VodClient($vodConfig);
$req = new QueryAssetDetailReq();
$req->setAssetId('1d9e9f555b07f053d2588d0ccd0580bb');
$req->setCategories(array('base_info', 'review_info'));
$rsp = $vodClient->queryAssetDetail($req);
echo $rsp->getBody();
}
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email sleep@kaituocn.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.