Client to work with Expedia's QuickConnect API
Using NPM
$ npm i expedia-quickconnect -S
The client requires a username, a password, and the different endpoints by default.
import ExpediaClient from 'expedia-quickconnect';
const client = ExpediaClient('username', 'password', { bookingsEndpointUri: 'SOME_URL'});
To ease development there is a 'testing' mode.
import ExpediaClient from 'expedia-quickconnect';
const client = ExpediaClient('username', 'password', { testing: true });
Interact with bookings from Expedia. The testing endpoint is: https://simulator.expediaquickconnect.com/connect/br
Retrieves the last 250 max listings
import ExpediaClient from 'expedia-quickconnect';
const client = ExpediaClient('username', 'password', { testing: true });
client.bookings.all()
.then(response => {
// Do something with response
});
Retrieves the bookings filtered by the booking Id
Parameter | Type | Description |
---|---|---|
hotelId | Number | Hotel's Id |
import ExpediaClient from 'expedia-quickconnect';
const client = ExpediaClient('username', 'password', { testing: true });
client.bookings.allByHotel(111)
.then(response => {
// Do something with response
});
Parameter | Type | Description |
---|---|---|
previousDays | Number | The number of days in the past. Must be between 1 and 30 |
import ExpediaClient from 'expedia-quickconnect';
const client = ExpediaClient('username', 'password', { testing: true });
client.bookings.allByPreviousDays(5)
.then(response => {
// Do something with response
});
Parameter | Type | Description |
---|---|---|
status | Enum(String) | Booking status. Must be: pending, retrieved, comfirmed |
import ExpediaClient from 'expedia-quickconnect';
const client = allByStatus('username', 'password', { testing: true });
const status = client.booking.Status;
client.bookings.allByStatus(status.confirmed)
.then(response => {
// Do something with response
});
- Booking Confirmations
- Availability and Rates
- Product Availability and Rates