1.0.0 • Published 5 years ago

node-hitlist v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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 
*/