UDDS OX API - documentation ver.2.5 (2023-04-07) ( 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 ) ;        
    } ) ;
  }