0.0.16 • Published 6 years ago
@ybaruchel/hermes v0.0.16
Hermes
Install
$ npm install @ybaruchel/hermes
Current supports
- Transavia - Requires API key
- Easyjet
- Pegasus
Usage:
async function getOffers() {
let airline = 'transavia'
let airlineGateway = await hermesApp.createAirlineGateway(airline)
let offers = await airlineGateway.getOffers(
'TLV',
'AMS',
'2022-09-22',
'2022-09-30', // Optional
1, // Adults
0, // Children
0 // Infants
)
return offers
}
- Please note that when querying transavia you must provide an API key on 'createAirlineGateway' method or as a ENV variable called 'TRANSAVIA_APIKEY'