User Tools

Site Tools


ors-soap-api:public:quicksearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ors-soap-api:public:quicksearch [2015/01/24 16:40]
127.0.0.1 external edit
ors-soap-api:public:quicksearch [2017/05/19 10:03] (current)
admin [Quick Search method]
Line 4: Line 4:
  
 Query string is a string that user enters in quick search field. You can specify which lists do you want to return by defining ''​types''​ attribute. Query string is a string that user enters in quick search field. You can specify which lists do you want to return by defining ''​types''​ attribute.
 +
 +<WRAP center round important 90%>
 +This method is only available for content type **dhotel**
 +
 +We urge you to use this CSV export files for regions and cities instead:
 +( Available languages: SI, EN, DE, HR, RS )
 +
 +  * [[http://​ors.si/​csvs/​regions_si.csv]]
 +  * [[http://​ors.si/​csvs/​oids_si.csv]]
 +
 +</​WRAP>​
 +
 +
  
 ===== Valid content types ===== ===== Valid content types =====
Line 72: Line 85:
  
         )         )
 +
 +
 +    [regions] => Array
 +        (
 +            [0] => Array
 +                (
 +                    [code] => 100434
 +                    [name] => Kvarner
 +                )
 +
 +            [1] => Array
 +                (
 +                    [code] => 99990088
 +                    [name] => Kvarner hribi
 +                )
 +
 +        )        ​
  
     [countries] => Array     [countries] => Array
Line 99: Line 129:
     * ''​cntyiso''​ : country ISO code     * ''​cntyiso''​ : country ISO code
     * ''​countrya'':​ country name     * ''​countrya'':​ country name
 +  * ''​regions''​ (array) : a list of regions
 +    * ''​code''​ : region code (rgc)
 +    * ''​name''​ : region name
   * ''​countries''​ (array) : a list of countries   * ''​countries''​ (array) : a list of countries
     * ''​code''​ : country ISO code (2 characters)     * ''​code''​ : country ISO code (2 characters)
Line 110: Line 143:
 $searchParams = array( $searchParams = array(
   '​query'​ => '​zdr', ​      // search string   '​query'​ => '​zdr', ​      // search string
-  '​types'​ => '​hotel,​places,​countries', ​      // type of lists to return+  '​types'​ => '​hotel,​places,​countries,regions', ​      // type of lists to return
 ); );
  
Line 127: Line 160:
   '​query'​ => '​zdr', ​      // search string   '​query'​ => '​zdr', ​      // search string
   '​types'​ => '​places', ​      // type of lists to return   '​types'​ => '​places', ​      // type of lists to return
 +);
 +
 +$results = $soapClient->​orsxml_dhotel_api_call( '​quicksearch',​ $searchParams,​ $header );
 +</​code>​
 +
 +  * Example of ''​quicksearch''​ request (return only regions)
 +
 +<code php>
 +$searchParams = array(
 +  '​query'​ => '​kvarner', ​      // search string
 +  '​types'​ => '​regions', ​      // type of lists to return
 ); );
  
ors-soap-api/public/quicksearch.1422114000.txt.gz ยท Last modified: 2015/02/12 10:27 (external edit)