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

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ors-soap-api:public:quicksearch [2015/02/12 10:27]
admin [Return Values]
ors-soap-api:public:quicksearch [2017/05/19 10:02]
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:
 +
 +  * [[http://​ors.si/​csvs/​regions_si.csv]]
 +  * [[http://​ors.si/​csvs/​oids_si.csv]]
 +
 +</​WRAP>​
 +
 +
  
 ===== Valid content types ===== ===== Valid content types =====
Line 116: Line 128:
     * ''​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 127: Line 142:
 $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 144: Line 159:
   '​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.txt ยท Last modified: 2017/05/19 10:03 by admin