ufostart-flightplan-api-client

0.0.11 • Public • Published

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)
    })

Package Sidebar

Install

npm i ufostart-flightplan-api-client

Weekly Downloads

10

Version

0.0.11

License

MIT

Unpacked Size

6.99 kB

Total Files

8

Last publish

Collaborators

  • thomaskral