mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
28 lines
584 B
PHP
28 lines
584 B
PHP
<?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($ak);
|
||
$client->setSecretKey($sk);
|
||
|
||
echo "\nDemo CertH5ConfigInit\n";
|
||
|
||
$body = [
|
||
"req_key" => "cert_h5_config_init",
|
||
"h5_config" => [
|
||
"type" => "1",
|
||
"redirect_url" => "https://xxx"
|
||
],
|
||
"liveness_config" => [
|
||
"ref_source" => "1",
|
||
"liveness_type" => "motion"
|
||
]
|
||
|
||
];
|
||
$response = $client->CertH5ConfigInit(['json' => $body]);
|
||
echo $response;
|
||
|