src/Yandex/Metrica/Management/OperationsClient.php
public function addOperation($counterId, Models\Operation $operation)
    {
        $resource = 'counter/' . $counterId . '/operations';
        $response = $this->sendPostRequest($resource, ["operation" => $operation->toArray()]);
        $operationResponse = new Models\AddOperationResponse($response);
        return $operationResponse->getOperation();
    }
public function addOperation($counterId, Models\Operation $operation)
    {
        $resource = 'counter/' . $counterId . '/operations';
        $response = $this->sendPostRequest($resource, ["operation" => $operation->toArray()]);
        $operationResponse = new Models\AddOperationResponse($response);
        return $operationResponse->getOperation();
    }
public function addOperation ( $ counterId , Models \ Operation $ operation ) { $ resource = 'counter/' . $ counterId . '/operations' ; $ response = $ this -> sendPostRequest ( $ resource , [ "operation" => $ operation -> toArray ( ) ] ) ; $ operationResponse = new Models \ AddOperationResponse ( $ response ) ; return $ operationResponse -> getOperation ( ) ; }
Add operation to counter

@see http://api.yandex.ru/metrika/doc/beta/management/operations/addoperation.xml

@param int $counterId
@param Models\Operation $operation
@return Models\Operation
Add operation to counter