for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Dmitry Gladyshev <[email protected]>
* @date 29/08/2016 12:35
*/
namespace Yandex\Direct\Service;
use Throwable;
use Yandex\Direct\Exception\Exception;
use Yandex\Direct\Service;
use function Yandex\Direct\get_param_names;
* Class VCards
* @package Yandex\Direct\Service
final class VCards extends Service
{
* Создает виртуальные визитки.
*
* @param $VCards
* @return array
* @throws Exception
* @throws \Exception
* @see https://tech.yandex.ru/direct/doc/ref-v5/vcards/add-docpage/
public function add($VCards)
return $this->request([
'method' => 'add',
'params' => [
'VCards' => $VCards
]
]);
}
* Удаляет виртуальные визитки.
* @param $SelectionCriteria
* @throws \Yandex\Direct\Exception\ErrorResponseException
* @see https://tech.yandex.ru/direct/doc/ref-v5/vcards/delete-docpage/
public function delete($SelectionCriteria)
'method' => 'delete',
'SelectionCriteria' => $SelectionCriteria
* Возвращает виртуальные визитки, отвечающие заданным критериям.
* @param $FieldNames
* @param $Page
* @throws \ReflectionException
* @see https://tech.yandex.ru/direct/doc/ref-v5/vcards/get-docpage/
public function get($SelectionCriteria, $FieldNames, $Page = null)
$params = compact(get_param_names(__METHOD__));
'method' => 'get',
'params' => $params