landon-openapi
v2.0.1
Published
The official API Wrapper for the Landon OpenAPI
Downloads
1
Maintainers
Readme
About
The Landon OpenAPI Wrapper makes it easy for developers to interact with our Roblox Flight Planner System.
- Simple and easy to use
- 100% coverage of the Landon OpenAPI
Installation
Node.js 14.16.0 or newer is required.
npm install landon-openapi
Usage
Requiring the package and authenticating your app with an API Key:
const Landon = require('landon-openapi');
const landonclient = new Landon({
apikey: "o1mapx.qh3v2r2t7kb06tfkt2l6g75s.jmfi"
});
Afterwards we can get, create or delete flights.
Get all Flights
let allFlights = await landonclient.getFlights();
console.log(allFlights)
Create a Flight
const flight_info = {
flightnumber: "RHT3894",
aircraft: "A320",
departure_airport: "Zurich",
arrival_airport: "New York",
game_url: "https://roblox.com/123",
date: "2022-02-22",
time: "1:00am",
roavhub_ping: false
};
let createFlight = await landonclient.createFlight(flight_info);
console.log(createFlight)
Delete a Flight
const flight_info = {
flightID: "kjrdto1cua9acj7s1pbsqgzjmko9fzrymdli",
};
let deleteFlight = await landonclient.deleteFlight(flight_info);
console.log(deleteFlight)