京东云
This commit is contained in:
88
vendor/jdcloud-api/jdcloud-sdk-php/src/Censor/CensorClient.php
vendored
Normal file
88
vendor/jdcloud-api/jdcloud-sdk-php/src/Censor/CensorClient.php
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* Censor
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Censor
|
||||
* @author Jdcloud <jdcloud-api@jd.com>
|
||||
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
||||
* @link https://www.jdcloud.com/help/faq
|
||||
*/
|
||||
|
||||
namespace Jdcloud\Censor;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with censor.
|
||||
*
|
||||
* @method \Jdcloud\Result asyncAudioScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise asyncAudioScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result audioResults(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise audioResultsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result asyncAudioScanV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise asyncAudioScanV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result audioCallbackV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise audioCallbackV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result audioResultsV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise audioResultsV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result deleteCensorLib(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteCensorLibAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteCensorLibItems(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteCensorLibItemsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result imageScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise imageScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result asyncImageScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise asyncImageScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result imageResults(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise imageResultsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result imageScanV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise imageScanV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result deleteLimit(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteLimitAsync(array $args = [])
|
||||
* @method \Jdcloud\Result textScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise textScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result innerTextScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise innerTextScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result textScanV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise textScanV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result textResultsV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise textResultsV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result asyncVideoScan(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise asyncVideoScanAsync(array $args = [])
|
||||
* @method \Jdcloud\Result videoResults(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise videoResultsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result asyncVideoScanV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise asyncVideoScanV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result videoCallbackV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise videoCallbackV2Async(array $args = [])
|
||||
* @method \Jdcloud\Result videoResultsV2(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise videoResultsV2Async(array $args = [])
|
||||
*/
|
||||
class CensorClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'censor',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'censor'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Censor/ChangeLog.md
vendored
Normal file
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Censor/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# 更新历史 #
|
||||
API版本:1.0.3
|
||||
|
||||
|发布时间|版本号|更新|说明|
|
||||
|---|---|---|---|
|
||||
|2021-07-30|1.0.3|支持bizType||
|
||||
|2021-07-02|1.0.2|新增新的检测接口||
|
||||
|2020-10-10|1.0.1|支持音视频异步检测||
|
||||
|2019-09-20|1.0.0|初始版本||
|
||||
Reference in New Issue
Block a user