UDDS OX API - documentation ver.2.4 (2022-04-06) ( www.dlaoperatora.pl )

API - URL GENERATOR FOR dlaoperatora.pl UDDS(OX) WEBSITES

Arguments

Returns


Returns ( simple string ):



JavaScript example:
  function goToUrl()
  {
    var getLinkUrlApi = 'https://demo-premium.dlaoperatora.pl/' ; 
                        /* your site url above */
    
    var searchParams = {
      "resultsPageNumber":"",
      "resultsPerPage":"",
      "countryRegionCity":[ "Egipt", "Grecja" ],
      "adulta":1,
      "transport":[ "samolot" ]      
    };
    
    var spJson = JSON.stringify ( searchParams ) ;
    
    var paramsToSend = {
      module:'bpw/search/searchParamsToUrl',
      mode:'ajax',
      linkType:'getBPWSearchLink',
      searchParams:spJson
    } ;              
    
    $.get( getLinkUrlApi, paramsToSend, function( ret ) {            
      alert ( 'generatedUrl is: '+ret ) ;        
    } ) ;
  }