UFOstart flightplan api client
Install
yarn add ufostart-flightplan-api-client
or
npm i ufostart-flightplan-api-client
Usage
import { getFlightPlanByApiKey } from 'ufostart-flightplan-api-client'
const yourUfostartApiKey = 'API_KEY'
let flightplan = {}
try {
flightplan = await getFlightPlanByApiKey(yourUfostartApiKey)
} catch (error) {
console.log(error)
}
or
const { getFlightPlanByApiKey } = require('ufostart-flightplan-api-client')
const yourUfostartApiKey = 'API_KEY'
let flightplan = {}
getFlightPlanByApiKey(yourUfostartApiKey)
.then(response => {
flightplan = response
})
.catch(error => {
console.log(error)
})