Table of contents
-
- Search methods
- Check methods
- Booking methods
- Info methods
Data export
- Methods
Table of contents
Data export
This is an old revision of the document!
Returns a list of hotels / places or countries by sending query
string.
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.
dhotel
(only this type is currently supported!)searchData (array)
: search parameters. Required search parameters: query
(types
is optional)headerData (array)
: SOAP Header InformationGets a list of hotels, places and countries that matches query string.
Array ( [hotel] => Array ( [0] => Array ( [code] => PL8415.200.2 [name] => PL8415.200.2 Dom Zdrojowy [gid] => !interhome:IlBMODQxNS4yMDAuMiI= [oid] => 17440 [hon] => Jastarnia [cntyiso] => PL [country] => Poland ) [1] => Array ( [code] => PL8415.200.6 [name] => PL8415.200.6 Dom Zdrojowy [gid] => !interhome:IlBMODQxNS4yMDAuNiI= [oid] => 17440 [hon] => Jastarnia [cntyiso] => PL [country] => Poland ) ) [places] => Array ( [0] => Array ( [oid] => 47032 [hon] => Busko Zdroj [cntyiso] => PL [country] => Poland ) [1] => Array ( [oid] => 62847 [hon] => Wysowa ZdrĂłj [cntyiso] => PL [country] => Poland ) ) [regions] => Array ( [0] => Array ( [code] => 100434 [name] => Kvarner ) [1] => Array ( [code] => 99990088 [name] => Kvarner hribi ) ) [countries] => Array ( [0] => Array ( [code] => US [name] => Združene države Amerike ) )
hotel
(array) : a list of hotelscode
: object unique codegid
: object GIATA IDname
: object namehon
: city nameoid
: city IDcntyiso
: country ISO codecountrya
: country nameplaces
(array) : a list of placeshon
: city nameoid
: city IDcntyiso
: country ISO codecountrya
: country nameregions
(array) : a list of regionscode
: region code (rgc)name
: region namecountries
(array) : a list of countriescode
: country ISO code (2 characters)name
: country namequicksearch
request$searchParams = array( 'query' => 'zdr', // search string 'types' => 'hotel,places,countries', // type of lists to return ); // this is the same as upper array (when types is empty then quicksearch returns all of the lists) $searchParams = array( 'query' => 'zdr', // search string ); $results = $soapClient->orsxml_dhotel_api_call( 'quicksearch', $searchParams, $header );
quicksearch
request (return only places)$searchParams = array( 'query' => 'zdr', // search string 'types' => 'places', // type of lists to return ); $results = $soapClient->orsxml_dhotel_api_call( 'quicksearch', $searchParams, $header );