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

31 lines
656 B
PHP

<?php
use Volc\Service\Vms\Vms;
require('../../../vendor/autoload.php');
require('../../../src/Service/Vms/Vms.php');
$client = Vms::getInstance();
$client->setAccessKey("your ak");
$client->setSecretKey("your sk");
$body = [
'Name' => '你好2222',
'Resource' => '9b39e17fb12444c78f20d6551469a6f0',
'Type' => 0,
'NumberPoolNo' => 'NP162213338604093530',
'Concurrency' => 2,
'PhoneList' => [
[
'Phone' => 'your phone',
]
],
'StartTime' => '2022-05-18 00:00:00',
'EndTime' => '2022-05-15 18:00:00',
'SelectNumberRule' => 5,
];
$response = $client->CreateTask($body);
echo $response;