qpx-express

16.1.12 • Public • Published
var API = require('qpx-express');

var apiKey = 'yourApiKey';
var qpx = new API(apiKey);

var body = {
	"request": {
	    "passengers": { "adultCount": 1 },
	    "slice": [{
	        "origin": origin,
	        "destination": destination,
	        "date": departureDate // YYYY-MM-DD
	      },
	      {
	        "origin": destination,
	        "destination": origin,
	        "date": returningDate // YYYY-MM-DD
	      }
	    ]
	  }
	};

qpx.getInfo(body, function(error, data){
	console.log('Heyy!', data);
});

Installation

$ npm install qpx-express

More details about QPX-Express? FAQ

Readme

Keywords

none

Package Sidebar

Install

npm i qpx-express

Weekly Downloads

6

Version

16.1.12

License

MIT

Last publish

Collaborators

  • slimfire