Skip to content

Commit

Permalink
Implemented getDestinationId
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiashu committed Apr 19, 2015
1 parent 258fdb2 commit 622affb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Dyatlov/Expedia/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ public function getAvailableRooms($params) {
return $result;
}

/**
* @see http://developer.ean.com/docs/geo-functions/examples/rest-location-search/
*
* @param $params
* @return mixed
*/
public function getDestinationId($params) {
$result = $this->geoSearch($params);

$this->checkForEanError($result);

return $result['LocationInfos']['LocationInfo']['destinationId'];
}

public function getHotelList($params) {
$result = array();

Expand Down
2 changes: 0 additions & 2 deletions Dyatlov/Expedia/Expedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ protected function getDefaultRequestOptions() {
'customerUserAgent' => $this->get_customer_user_agent(),
'currencyCode' => $this->get_currency_code(),
'apiExperience' => 'PARTNER_WEBSITE',
'includeDetails' => 1,
'includeHotelFeeBreakdown' => 1,
);
}

Expand Down

0 comments on commit 622affb

Please sign in to comment.