Para realizar una consulta especificando un rango de fechas se puede implementar con la librería de la siguiente manera:
(Es necesario tener el API_KEY y el ID_USER para el que se requiere consultar la información)
<?php $YOUR_API_KEY = ''; $ID_USER = ''; paybook\Paybook::init($YOUR_API_KEY); $my_users = paybook\User::get(); $user = null; foreach ($my_users as $index => $my_user) { if ($my_user->id_user == $ID_USER) { _print('User '.$ID_USER.' already exists'); $user = $my_user; }//End of if }//End of foreach $session = new paybook\Session($user); _print('Token: '.$session->token); $session_verified = $session->verify(); _print('Session verfied: '.strval($session_verified)); date_default_timezone_set('America/Mexico_City'); $dt_transaction_from = strtotime('01-06-2016'); $dt_transaction_to = strtotime('01-07-2016'); print_r("Date from: ".gmdate("Y-m-d\TH:i:s\Z",intval($dt_transaction_from))); print_r("\nDate from: ".gmdate("Y-m-d\TH:i:s\Z",intval($dt_transaction_to))."\n"); $options = [ 'dt_transaction_from' => $dt_transaction_from, 'dt_transaction_to' => $dt_transaction_to, 'order' => 'dt_transaction', ];//End of $options $bank_transactions = paybook\Transaction::get($session, null, $options); _print('Bank transactions: '.strval(count($bank_transactions))); foreach ($bank_transactions as $index => $transaction) { print_r(gmdate("Y-m-d\TH:i:s\Z",intval($transaction->dt_transaction.PHP_EOL))); print_r(" ".$transaction->description.PHP_EOL); }//End of foreach