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