Skip to content

rpwnage/FSAirlines.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FSAirlines.js npm

FSAirlines is a powerful and flexible JavaScript library for interacting with the FS Airline Interface (VA Interface). It provides a simple and consistent API for making HTTP requests to the VA Interface, allowing you to easily retrieve and manipulate data related to aircraft, airports, airlines, financial data, flight data, pilot data, flight booking, and more.

Installation

To use FSAirlines in your project, you need to install it first. You can do this using npm:

npm install fsairlines.js

Usage

To use FSAirlines, you need to create an instance of the FSAirlines class and pass your API key as a configuration option:

import FSAirlines from "fsairlines.js";

const config = {
	api_key: "your_api_key_here",
};

const fsAirlines = new FSAirlines(config);

Once you have an instance of the FSAirlines class, you can use its methods to make HTTP requests to the VA Interface. Here's an example of how you can retrieve the list of all airports:

fsAirlines
	.getAirportList("your_va_id_here")
	.then((data) => {
		console.log(data);
	})
	.catch((error) => {
		console.error(error);
	});

FSAirlines provides a wide range of methods for interacting with the VA Interface. You can find a complete list of available methods in the API documentation.

Contributing

We welcome contributions to FSAirlines! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request. Before you start working on a new feature, please make sure to read our contribution guidelines.

License

FSAirlines is licensed under the MIT License. See the LICENSE file for more information.

Important Note

Please note that this is just a very basic client interpretation for the fsairlines api, I wrote for a customer of mine. If it gets some extension, I will upgrade it. For now, you can use it as a starting point to build your own customized client for interacting with the fsairlines API.

Releases

No releases published

Packages

No packages published