A Node.js wrapper for Schiphol Flight API. For more details about the Schiphol Flight API, you can always refer to here. This wrappers contains both v1 and v3 version endpoints from the API.
Use the following command to install and save the package in your package.json:
npm install schiphol-client-js --save
To use the client, first import the package and call a query as follows. Each query will return a promise for further chaining.
var Client = ;var client = 'yourAppId' 'yourAppKey';client;
To run the tests:
Note that for all the following
params, all parameters should be wrapped in a object and passed to the API.
Return all flights of a specific date. If no parameters are passed, the flights of today will be returned. An example:
var params =airline: 'KL'flightdirection: 'A'
For all possible parameters, please check here.
Retrieve one flight by its ID. The input ID is mandatory for this function and should be a string.
Retrieve a codeshare by the ID and the name of a flight. Both input parameters are mandatory. The ID is a string and the flightName should be a string.
Retrieve a list of destinations. If no parameters are passed, all possible destinations will be returned. For all possible parameters, see here.
Retrieve one desitination based on IATA code. The input IATA code is mandatory. An IATA code should be a string.
Retrieve a list of all aircraft types. If no paramters are passed, all aircraft types will be returned. For all optional input parameters, please check here.
Retrieve a list of airlines. If no paramters are passed, all possible airlines will be returned. For all optional input parameters, see here.
Retrieve an airline based on an airline code, either IATA code or ICAO code. The input airline code is mandatory. An airline code should be a string.