mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
29 lines
716 B
PHP
29 lines
716 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 FaceFusionMovieSubmitTask\n";
|
||
|
||
$body = [
|
||
'req_key' => 'facefusionmovie_standard',
|
||
'image_url' => 'https://xxxx',
|
||
'video_url' => 'https://xxxx',
|
||
];
|
||
$response = $client->FaceFusionMovieSubmitTask(['json' => $body]);
|
||
echo $response;
|
||
|
||
|
||
// echo "\nDemo FaceFusionMovieGetResult\n";
|
||
|
||
// $body = [
|
||
// 'req_key' => 'facefusionmovie_standard',
|
||
// 'task_id' => 'xxxx',
|
||
// ];
|
||
// $response = $client->FaceFusionMovieGetResult(['json' => $body]);
|
||
// echo $response;
|