Download the PHP package andreiashu/expedia-php-api without Composer
On this page you can find all versions of the php package andreiashu/expedia-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download andreiashu/expedia-php-api
More information about andreiashu/expedia-php-api
Files in andreiashu/expedia-php-api
Download andreiashu/expedia-php-api
More information about andreiashu/expedia-php-api
Files in andreiashu/expedia-php-api
Vendor andreiashu
Package expedia-php-api
Short Description Fork of https://github.com/dyatlov/Expedia-PHP-API (thanks dyatlov)
License MIT
Homepage https://github.com/andreiashu/Expedia-PHP-API
Package expedia-php-api
Short Description Fork of https://github.com/dyatlov/Expedia-PHP-API (thanks dyatlov)
License MIT
Homepage https://github.com/andreiashu/Expedia-PHP-API
Please rate this library. Is it a good library?
Informations about the package expedia-php-api
Expedia-PHP-API
PHP Wrapper for Expedia API
Official API documentation can be found here: http://developer.ean.com/docs/
For usage examples please take a look at source code of example.php
file.
Methods
__construct( $cid, $key )
- constructs expedia api instance based on client id and api keygetHotelList
- get hotels list ( doc: http://developer.ean.com/docs/hotel-list/ )getHotelInfo
- retrieve single hotel details ( doc: http://developer.ean.com/docs/hotel-info/ )getAvailableRooms
- retrieve available rooms for given hotel ( doc: http://developer.ean.com/docs/room-avail/ )getPaymentOptions
- retrieve supported payment methods ( doc: http://developer.ean.com/docs/payment-types/ )set_method
- set method to call api (GET or POST)set_protocol
- set prefix for api url ('http://' or 'https://book.')set_minor_rev
- set minimal api versionset_locale
- set preferred locale which will be used to return resultsset_currency_code
- set currency for results (can be USD, AUD, RUR etc..)set_customer_session_id
- set unique customer session, required by apiset_customer_ip_address
- set customer ip addressset_customer_user_agent
- set customer user agentset_sig
- if you're using signature authentication, then set this*
- if you want to use an api method which is not implemented in this wrapper - then simply call it by name and it will be translated to api method call. Example: lets assume that we want to call methodrules
(http://developer.ean.com/docs/rate-rules/). Then we need to check method name in documentation. We go to documentation page and look for method REST URL and get last part (after v3/) from it. In our case it isrules
. Then we simply call it like:$hotelRules = $this->rules(array('hotelId' => 123, ...));
.
All versions of expedia-php-api with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package andreiashu/expedia-php-api contains the following files
Loading the files please wait ....