Get a list of touroperator units.
hotel (at the moment only this content type is supported)searchData (array) : search parameters. Required serach parameters: toc. Non mandatory parameters: objectId, unitIdheaderData (array) : in addition to SOAP Header Information , you'll need an export account credentials (xuser, xpass)Returns a list of available units. Here is an example of output:
Array
(
[objects] => Array
(
[0] => Array
(
[id] => 4081
[objectName] => Apartmaji Vila Maia
[objectPlace] => Strunjan
[objectCountryIso] => SI
[units] => Array
(
[17281] => Array
(
[id] => 17281
[unitName] => A2+2
[unitType] => AP
[unitView] => pool
)
[17291] => Array
(
[id] => 17291
[unitName] => B4+2
[unitType] => AP
[unitView] => pool
)
)
)
)
)
objects (array) : list of objectsid : object IDobjectName : object nameobjectPlace : object placeobjectCountryIso : object country ISO codeunits (array) : list of unitsid : unit IDunitName : unit nameunitType : unit typeunitView : unit view$searchParams = array( 'toc' => 'APP', // touroperator code 'objectId' => '4081', // object id ); $units = $soapClient->orsxml_hotel_api_call( 'getUnits', $searchParams, $header );
$searchParams = array( 'toc' => 'APP', // touroperator code 'unitId' => '23571', // unit id ); $units = $soapClient->orsxml_hotel_api_call( 'getUnits', $searchParams, $header );