array ( [ 'idReservation' ] = '' ; // ID_R2 [ 'idParticipant' ] = '' ; // ID_PAX [ 'documentName' ] = '' ; // document template name [ 'returnFormat' ] = '' ; // 'url' | 'contentAsString' ) OR array ( [ 'webId' ] = '' ; [ 'idParticipant' ] = '' ; // ID_PAX [ 'documentName' ] = '' ; [ 'returnFormat' ] = '' ; )
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 [ 'idReservation' ] = 4 ; $yourParams [ 'documentName' ] = 'umowa zgloszenie' ; $ret = $udds->getReservationDocument ( $yourParams ) ;
Returns $ret = Array ( 'url' => 'https://api.dlaoperatora.pl/reservationPrint?754898ftr439hf9834&l=XXX&...', 'status' => 'OK' )