Files
crm.clientright.ru/modules/SPVoipIntegration/apiManagers/YandexApiManager.php

20 lines
575 B
PHP
Executable File

<?php
namespace SPVoipIntegration\apiManagers;
use SPVoipIntegration\integration\AbstractCallApiManager;
use SPVoipIntegration\api\YandexClient;
class YandexApiManager extends AbstractCallApiManager{
public function doOutgoingCall($number) {
$client = new YandexClient();
$fromNumber = \Settings_SPVoipIntegration_Record_Model::getYandexUserOutgoing();
$client->makeCall($fromNumber, $number);
}
public function getRecordLink($callId) {
$client = new YandexClient();
return $client->getRecord($callId);
}
}