1.0.0 • Published 7 years ago
node-hitlist v1.0.0
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
*/1.0.0
7 years ago