Skip to content

Instantly share code, notes, and snippets.

@leandrojo
Created March 4, 2016 17:51
Show Gist options
  • Select an option

  • Save leandrojo/4b90a5b4c30402fdf839 to your computer and use it in GitHub Desktop.

Select an option

Save leandrojo/4b90a5b4c30402fdf839 to your computer and use it in GitHub Desktop.
HotelListRequest: {
apiExperience : 'PARTNER_WEBSITE',
arrivalDate : arrivalDate,
departureDate : departureDate,
numberOfResults : opts.numberOfResults || 200,
includeDetails : opts.details || true,
includeHotelFeeBreakdown: true,
sort: opts.sort || 'HIGH_MARGIN',
RoomGroup: {
Room: { numberOfAdults: opts.numberOfAdults || 2 }
}
}
// Check the type of search you get, if a string extend with.
{
destinationString: location
}
// Or else an array with latitude and longitude extend request.
{
latitude : location.lat,
longitude : location.lng,
searchRadius : opts.searchRadius || 21,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment