🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

openflighthub-api-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openflighthub-api-client-sdk

This is a typescript sdk made to talk to the [OpenFlightHub Api](https://hub.openflighthub.org/api).

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
18
63.64%
Maintainers
1
Weekly downloads
 
Created
Source

OpenFlightHub API Client SDK

This is a typescript sdk made to talk to the OpenFlightHub Api.

Features

  • typescript typings (for parameters, request bodies and returned data)
  • automatically handles idempotency

Dependencies

  • none

Usage

install via npm:

npm i --save openflighthub-api-client-sdk
import OpenFlightHubApi from "openflighthub-api-client-sdk"

const api = OpenFlightHubApi()

api.apiStatus.addListener('connected', () => {
    console.log('api is connected')
})

api.apiStatus.addListener('disconnected', reason => {

    if(reason === 'logout'){
        console.log('we have been forcefully logged out by the server (probably some other machine has logged in using the same user account')
    }

    console.log('api is disconnected')
})

console.log('API Version', api.rest.API_VERSION)
console.log('Client SDK Version', api.rest.CLIENT_SDK_VERSION)

Changelog

see CHANGELOG.md

For Developers

see dev/README.md

Keywords

flight

FAQs

Package last updated on 26 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts