Skip to content

alreadyjosh/landon-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Landon-OpenAPI


Discord Server NPM Version API Status

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)

Links

About

The official API Wrapper for the Landon OpenAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published