User Tools

Site Tools


ors-soap-api:public:getunits

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ors-soap-api:public:getunits [2015/02/18 20:32]
admin created
ors-soap-api:public:getunits [2015/02/18 21:35] (current)
admin [Examples]
Line 24: Line 24:
  
 <​code>​ <​code>​
-array+Array
 ( (
     [objects] => Array     [objects] => Array
Line 34: Line 34:
                     [objectPlace] => Strunjan                     [objectPlace] => Strunjan
                     [objectCountryIso] => SI                     [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 
 +                                ) 
 + 
 +                        ​)
  
-            [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 +
-                ​) +
-...+
 </​code>​ </​code>​
  
Line 62: Line 69:
     * ''​objectPlace''​ : object place     * ''​objectPlace''​ : object place
     * ''​objectCountryIso''​ : object country ISO code     * ''​objectCountryIso''​ : object country ISO code
 +    * ''​units''​ (array) : list of units
 +      * ''​id''​ : unit ID
 +      * ''​unitName''​ : unit name
 +      * ''​unitType''​ : unit type
 +      * ''​unitView''​ : unit view
        
 ===== Examples ===== ===== Examples =====
  
-  * Example ​with basic search ​parameters with selected region group ID+  * Example ​search ​by object id
 <code php> <code php>
 $searchParams = array( $searchParams = array(
   '​toc'​ => '​APP', ​      // touroperator code   '​toc'​ => '​APP', ​      // touroperator code
 +  '​objectId'​ => '​4081',​ // object id
 ); );
  
-$objects ​= $soapClient->​orsxml_hotel_api_call( 'getObjects', $searchParams,​ $header );+$units = $soapClient->​orsxml_hotel_api_call( 'getUnits', $searchParams,​ $header );
 </​code>​ </​code>​
  
-  * Example : search ​object ​by id+  * Example : search by unit id 
 <code php> <code php>
 $searchParams = array( $searchParams = array(
   '​toc'​ => '​APP', ​      // touroperator code   '​toc'​ => '​APP', ​      // touroperator code
-  'objectId' => '4081', // object ​id+  'unitId' => '23571', ​ // unit id
 ); );
  
-$objects ​= $soapClient->​orsxml_hotel_api_call( 'getObjects', $searchParams,​ $header );+$units = $soapClient->​orsxml_hotel_api_call( 'getUnits', $searchParams,​ $header );
 </​code>​ </​code>​
  
   ​   ​
ors-soap-api/public/getunits.1424287929.txt.gz · Last modified: 2015/02/18 20:32 by admin