2026-09-23 15:15:02 +08:00

25 lines
676 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require('../../../vendor/autoload.php');
use Volc\Service\Visual;
$client = Visual::getInstance();
// call below method if you dont set ak and sk in ~/.volc/config
$client->setAccessKey('sts-ak');
$client->setSecretKey('sts-sk');
// $client->setSessionToken('sts-token');
echo "\nDemo CertVerify\n";
$body = [
'req_key' => 'cert_pro_src_verify', // 有源比对填写cert_pro_src_verify,无源比对填写cert_pro_no_src_verify
'byted_token' => 'xxx',
'sdk_data' => '',
// 'video_key' => '',
// 'tos_bucket' => '',
'risk_info' => 'https://xxxx',
// 'extra' => []
];
$response = $client->CertVerify(['json' => $body]);
echo $response;