mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-09 19:30:55 +00:00
28 lines
571 B
PHP
28 lines
571 B
PHP
<?php
|
||
include_once(__DIR__ . '/../../../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");
|
||
|
||
$query = [
|
||
'ServiceId' => 'service id',
|
||
];
|
||
|
||
$body = [
|
||
'domain' => 'domain',
|
||
'refer_link' => [
|
||
'enabled' => true,
|
||
'is_white_mode' => false,
|
||
'values' => ['example.com'],
|
||
'allow_empty_refer' => true,
|
||
],
|
||
];
|
||
|
||
$response = $client->updateRefer($query, $body);
|
||
print_r($response);
|