Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
schiphol-client-js
Advanced tools
A Node.js wrapper for Schiphol API
Weekly downloads
Readme
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 = require('schiphol-client-js');
var client = new Client('yourAppId', 'yourAppKey');
client.findFlights().then((data) => {
console.log(data);
}).catch((error) => {
console.log(error);
});
To run the tests:
npm test
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.
FAQs
A Node.js wrapper for Schiphol API
The npm package schiphol-client-js receives a total of 2 weekly downloads. As such, schiphol-client-js popularity was classified as not popular.
We found that schiphol-client-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.