node-hitlist
v1.0.0
Published
An API for Hitlist
Downloads
4
Readme
node-hitlist
An API for Hitlist
Usage
const Hitlist = require('node-hitlist');
const hit = new Hitlist();
Get airports list
hit.listAirports();
Create session
hit.createSession(iataCode);
/*
iataCode is optional, it can be found using listAirports() method
if no iataCode is provided, it will default to your IP geolocation
Prices and availability will depend on location provided
*/
Get profile
hit.getProfile();
Get trips
hit.getTrips();
Get cities
hit.getCities();
Get featured list
hit.getFeaturedList(listId);
Get city details
hit.getCity(citySlug);
/*
for example paris-france
*/
Get deals by city
hit.getDealsByCity(citySlug);
/*
for example paris-france
*/
Get hotels by city
hit.getHotelsByCity(citySlug);
/*
for example paris-france
*/