
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@flylinedev/flyline_node
Advanced tools
A node.js client library for the Flyline API.
$ npm install flyline
The module supports all Flyline API endpoints. For complete information about the API, head to the docs.
All endpoints require a valid FToken to
access and are accessible from a valid instance of a Flyline Client:
const flyline = require('flyline');
const flylineClient = new flyline.Client();
The default timeout for requests is 10 minutes.
Once an instance of the client has been created you use the following methods:
const flyline = require('flyline');
// Initialize client
const flylineClient = new Flyline.Client();
// getSeatList(String, Function)
flylineClient.getSeatList(f_token, cb);
// getLayoutList(String, Function)
flylineClient.getLayoutList(f_token,cb);
// getFoodList(String, Function)
flylineClient.getFoodList(f_token, cb);
// getBeverageList(String, Function)
flylineClient.getBeverageList(f_token, cb);
// getEntertainmentList(String, Function)
flylineClient.getEntertainmentList(f_token, cb);
// getWifiList(String, Function)
flylineClient.getWifiList(f_token, cb);
// getPowerList(String, Function)
flylineClient.getPowerList(f_token, cb)
// getAircraftList(String, Function)
flylineClient.getAircraftList(f_token, cb);
// getAirCraftByIataCode(String, String, Function)
flylineClient.getAirCraftByIataCode(f_token, aircraftIataCode, cb);
// getAirlineList(String, Function)
flylineClient.getAirlineList(f_token, cb);
// getAirlineByIataCode(String, String, Function)
flylineClient.getAirlineByIataCode(f_token, airlineIataCode, cb);
// getAirportList(String, Function)
flylineClient.getAirportList(f_token, cb);
// getAirportByIataCode(String, String, Function)
flylineClient.getAirportByIataCode(f_token, airportIataCode, cb);
// getAirportByCity(String, String, Function)
flylineClient.getAirportByCity(f_token, airportCity, cb);
// getCityList(String, Function)
flylineClient.getCityList(f_token, cb);
// getCityByIataCode(String, String, Function)
flylineClient.getCityByIataCode(f_token, cityIataCode, cb);
// getCabinMapping(String, Function)
flylineClient.getCabinMapping(f_token, cb);
// getCabinMapingWithParams(String, JSONObject?, Function)
flylineClient.getCabinMapingWithParams(f_token, paramObj, cb);
// getSeatMap(String, JSONObject, Function)
flylineClient.getSeatMap(f_token, paramObj, cb);
// getAirAttributeWithParams(String, JSONObject, Function)
flylineClient.getAirAttributeWithParams(f_token, paramObj, cb);
// getAirAttributeByRoute(String, JSONObject, Function)
flylineClient.getAirAttributeByRoute(f_token, paramObj, cb);
// getAirfareWithParams(String, JSONObject, Function)
flylineClient.getAirfareWithParams(f_token, paramObj, cb);
// GetAirScheduleWithParam(String, JSONObject, Function)
flylineClient.GetAirScheduleWithParam(f_token, paramObj, cb);
// GetAirScheduleByRoute(String, JSONObject, Function)
flylineClient.GetAirScheduleByRoute(f_token, paramObj, cb);
All parameters are required.
All requests have callbacks of the following form:
function callback(err, response) {
// err can be a network error or a Flyline API error (i.e. invalid credentials)
}
paramObj should be the JsonObject, referenced in the function of Flyline API .
Callback function will response the error as response message if there is no required param.
Use the Live Token as a FToken when you are going to publish product.
Use the Sandbox Token as a FToken when you are under development using Flyline API.
You can Live Token and Sandbox Token in Flyline Account Page
Here is Get Seat List API as a Example.
flylineClient.getSeatList(f_token, (err, seats) => {
seats.map(seat => {console.log(This ${seat} is available now)});
});
Every method returns a promise, so you don't have to use the callbacks.
API methods that return either a success or an error can be used with the
usual then/else paradigm, e.g.
flylinePromise.then(successResponse => {
// ...
}).catch(err => {
// ...
});
Open an issue!
Click here!
FAQs
Flyline Node SDK
We found that @flylinedev/flyline_node 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.