Table of Contents

getObjects method

Get a list of touroperator objects.

Valid content types

Description

public string getObjects( array $searchData, array $headerData)

Parameters

Return Values

Returns a list of available objects. Here is an example of output (string is always returned):

array
(
    [objects] => Array
        (
            [0] => Array
                (
                    [id] => 4081
                    [objectName] => Apartmaji Vila Maia
                    [objectPlace] => Strunjan
                    [objectCountryIso] => SI
                )

            [1] => Array
                (
                    [id] => 5471
                    [objectName] => Vile Terme Zreče
                    [objectPlace] => Zreče
                    [objectCountryIso] => SI
                )

            [2] => Array
                (
                    [id] => 7871
                    [objectName] => Villa Piranesi
                    [objectPlace] => Piran
                    [objectCountryIso] => SI
                )
...

Return parameters

Examples

$searchParams = array(
  'toc' => 'APP',       // touroperator code
);
 
$objects = $soapClient->orsxml_hotel_api_call( 'getObjects', $searchParams, $header );
$searchParams = array(
  'toc' => 'APP',       // touroperator code
  'objectId' => '4081', // object id
);
 
$objects = $soapClient->orsxml_hotel_api_call( 'getObjects', $searchParams, $header );