2.0.1 • Published 2 years ago

landon-openapi v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago