Function getReservationList

Arguments

  • params :
        array (          
              [ 'reservationSearch' ][ 'status' ] = array of strings () nowa | oferta | sprzedaลผ | sprzedana | anulowana,
              [ 'reservationSearch' ][ 'reservationDateFrom' ] = 'yyyy-mm-dd', ( search all resDate > )
              [ 'reservationSearch' ][ 'reservationDateTo' ] = 'yyyy-mm-dd', ( search all resDate < )
              [ 'reservationSearch' ][ 'reservationNumber' ] = array ( str1, str2 ... strN ),
              [ 'reservationSearch' ][ 'idReservation' ] = array ( str1, str2 ... strN ),
              [ 'reservationSearch' ][ 'offerCode' ] = string, 
              [ 'reservationSearch' ][ 'offerDateFrom' ] = 'yyyy-mm-dd', ( search all offerDateFrom == )
              [ 'reservationSearch' ][ 'offerDateTo' ] = 'yyyy-mm-dd', ( search all offerDateTo == )
              [ 'reservationSearch' ][ 'idAgency' ] = int idAgency,
              [ 'reservationSearch' ][ 'idAgencyPerson' ] = int idAgencyPerson,
    
              [ 'reservationSearch' ][ 'orderBy' ] = 'reservationDate', 'number', ''
              [ 'reservationSearch' ][ 'orderDirection' ] = 'a' | 'd'
              [ 'reservationSearch' ][ 'perPage' ] = int default = 20
              [ 'reservationSearch' ][ 'pageNo' ] = int default = 0 ( from 0 )
            )
            
        

Returns

Array including reservations list with simple details informations.

Example


  require_once ( 'classUddsOx.php' ) ;

  $udds = new classUddsOx ;
  $udds->customerCode = [your_customerCode] ;
  $udds->login = [your_login] ;
  $udds->password = [your_password] ;
  $udds->serverUrl = 'http://api.dlaoperatora.pl/udds/' ;
  
  $yourParams = array();
  $yourParams [ 'reservationDateFrom' ] = '2019-05-01' ;
  $yourParams [ 'reservationDateTo' ] = date ( 'Y-m-d' ) ;
  $ret = $udds->getReservationList ( $yourParams  ) ;

  $ret = $udds->getReservationList ( $yourParams  ) ;


Returns $ret =
( ... )