<?php

require_once __DIR__ . '/../../app/services/hikvision/HikvisionClient.php';
require_once __DIR__ . '/../../app/services/hikvision/HikvisionNominaService.php';

$client = new HikvisionClient([
    'ip'       => '192.168.100.254',
    'port'     => 80,
    'user'     => 'admin',
    'pass'     => '28251714.',
    'protocol' => 'http',
]);

$service = new HikvisionNominaService($client);
$result = $service->obtenerUsuarios(0, 30);

header('Content-Type: text/plain; charset=utf-8');
print_r($result);