This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ors-soap-api:public:getunits [2015/02/18 21:31] admin [Return Values] |
ors-soap-api:public:getunits [2015/02/18 21:35] (current) admin [Examples] |
||
|---|---|---|---|
| Line 69: | 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> | ||
| | | ||