New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qpx-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qpx-api

Wrapper for the QPX API (Google flights)

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

qpx-api

npm version

An API wrapper for QPX (Google flights).

The QPX API is described here.

Install

npm i qpx-api -S

Usage

First, create an instance of the API client:

var QPXApi = require('qpx-api');

var QPXApiClient = new QPXApi({
  api_key: 'your api key',
  timeout: 5000 // timeout in milleseconds
});

Then,

var data = {
  passengers: { adultCount: 1 },
  slice: [
    {
      origin: "YUL",
      destination: "LAS",
      date: "2016-11-11"
    }
  ],
  "solutions": 1
};

QPXApiClient.search(data, function (err, jsonResponse) {
    
});

It can also return a Promise :

QPXApiClient.search(data).then(function (jsonResponse) {
    
}).catch(function (err) {
    
});

Keywords

FAQs

Package last updated on 08 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc