mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-02 16:00:40 +00:00
19 lines
454 B
PHP
19 lines
454 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 = [
|
|
'Caller' => "137XXXX8257",
|
|
'Callee' => "158XXXX9130",
|
|
'CallerNumberPoolNo' => 'NP163517154204092175',
|
|
'CalleeNumberPoolNo' => 'NP163517154204092175',
|
|
];
|
|
|
|
$response = $client->Click2Call($body);
|
|
echo $response; |