Function getWebPageUrl

Arguments

  • functionParams [ 'linkType' ] = 'getBPWSearchLink' | 'getBpwOfferLink' | 'getBpwTripsLink'
    functionParams [ 'pageUrl' ] = 'http://page.domain/' // Shoud be backslash "/" on the end.
    functionParams [ 'searchParams' ] = searchParams structure.


    WARNING : searchParams structure passed by functionParams parameter not by UDDS class property !!!

Returns

Proper url to web page.

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/' ;

  // parametry wyszukiwania ofert
  $udds->searchParams [ 'countryRegionCity' ] = array ( 'Polska', 'Chorwacja,Krk', 'Wล‚ochy', 'Austria' ) ;
  $udds->searchParams [ 'transport' ] = array ( 'samolot' ) ;

  // dodatkowe parametry dla funkcji okreล›lajฤ…ce rodzaj url jaki chcemy otrzymaฤ‡.
  $functionParams = array();
  $functionParams [ 'linkType' ] = 'getBPWSearchLink' ;
  $ret = $udds->getWebPageUrl( $functionParams ) ;
  

Returns $ret = Array ( [url] => lsw,Polska;Chorwacja:Krk;Wล‚ochy;Austria,,samolot,,,,,,,,,,,,,,,,,,,,,,,,,,firstPersonPrice,a )