Table of Contents

getUnits method

Get a list of touroperator units.

Valid content types

Description

public array getUnits( array $searchData, array $headerData)

Parameters

Return Values

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
                                )

                        )

                )

        )

)

Return parameters

Examples

$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 );