You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
453 B
19 lines
453 B
<?php
|
|
require('../../vendor/autoload.php');
|
|
|
|
use Volc\Service\ImageX;
|
|
|
|
$client = ImageX::getInstance();
|
|
|
|
// call below method if you dont set ak and sk in ~/.volc/config
|
|
$client->setAccessKey("ak");
|
|
$client->setSecretKey("sk");
|
|
|
|
$config = [
|
|
"query" => [], // api query param
|
|
"json" => [], // api json param
|
|
];
|
|
|
|
// ImageX api doc: https://www.volcengine.cn/docs/508/14106
|
|
$response = $client->requestImageX("Action", $config);
|
|
echo $response;
|
|
|