Comparing version 3.0.0 to 3.1.0
# Changelog | ||
## 3.1.0 - 2019-04-08 | ||
## Points of interest API | ||
New version of the Node SDK to support a new endpoint: | ||
* [Points of Interest](https://developers.amadeus.com/self-service/category/210/api-doc/55/api-docs-and-example/10014) | ||
## 3.0.0 - 2019-01-22 | ||
@@ -3,0 +12,0 @@ |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _pois = require('./locations/pois'); | ||
var _pois2 = _interopRequireDefault(_pois); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -38,2 +42,3 @@ | ||
this.airports = new _airports2.default(client); | ||
this.pointsOfInterest = new _pois2.default(client); | ||
} | ||
@@ -75,2 +80,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvcmVmZXJlbmNlX2RhdGEvbG9jYXRpb25zLmpzIl0sIm5hbWVzIjpbIkxvY2F0aW9ucyIsImNsaWVudCIsImFpcnBvcnRzIiwiQWlycG9ydHMiLCJwYXJhbXMiLCJnZXQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O0lBY01BLFM7QUFDSixxQkFBWUMsTUFBWixFQUFvQjtBQUFBOztBQUNsQixTQUFLQSxNQUFMLEdBQWNBLE1BQWQ7QUFDQSxTQUFLQyxRQUFMLEdBQWdCLElBQUlDLGtCQUFKLENBQWFGLE1BQWIsQ0FBaEI7QUFDRDs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzswQkFrQmlCO0FBQUEsVUFBYkcsTUFBYSx1RUFBSixFQUFJOztBQUNmLGFBQU8sS0FBS0gsTUFBTCxDQUFZSSxHQUFaLENBQWdCLDhCQUFoQixFQUFnREQsTUFBaEQsQ0FBUD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nQpO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgYSBsaXN0IG9mIGFpcnBvcnRzIGFuZCBjaXRpZXMgbWF0Y2hpbmcgYSBnaXZlbiBrZXl3b3JkLlxuICAgKlxuICAgKiBAcGFyYW0ge09iamVjdH0gcGFyYW1zXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBwYXJhbXMua2V5d29yZCBrZXl3b3JkIHRoYXQgc2hvdWxkIHJlcHJlc2VudCB0aGUgc3RhcnQgb2ZcbiAgICogICBhIHdvcmQgaW4gYSBjaXR5IG9yIGFpcnBvcnQgbmFtZSBvciBjb2RlXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBwYXJhbXMuc3ViVHlwZSB0aGUgdHlwZSBvZiBsb2NhdGlvbiB0byBzZWFyY2ggZm9yXG4gICAqIEByZXR1cm4ge1Byb21pc2UuPFJlc3BvbnNlLFJlc3BvbnNlRXJyb3I+fSBhIFByb21pc2VcbiAgICpcbiAgICogRmluZCBhbnkgbG9jYXRpb24gc3RhcnRpbmcgd2l0aCAnbG9uJ1xuICAgKlxuICAgKiBgYGBqc1xuICAgKiBhbWFkZXVzLnJlZmVyZW5jZURhdGEubG9jYXRpb24uZ2V0KHtcbiAgICogICBrZXl3b3JkOiAnbG9uJyxcbiAgICogICBzdWJUeXBlOiBBbWFkZXVzLmxvY2F0aW9uLmFueVxuICAgKiB9KTtcbiAgICogYGBgXG4gICAqL1xuICBnZXQocGFyYW1zID0ge30pIHtcbiAgICByZXR1cm4gdGhpcy5jbGllbnQuZ2V0KCcvdjEvcmVmZXJlbmNlLWRhdGEvbG9jYXRpb25zJywgcGFyYW1zKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBMb2NhdGlvbnM7XG4iXX0= |
{ | ||
"name": "amadeus", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Node library for the Amadeus travel APIs", | ||
@@ -47,3 +47,4 @@ "main": "lib/amadeus.js", | ||
"cbetta", | ||
"Anthony Roux" | ||
"Anthony Roux", | ||
"Alvaro Navarro" | ||
], | ||
@@ -50,0 +51,0 @@ "devDependencies": { |
@@ -196,4 +196,4 @@ # Amadeus Node SDK | ||
amadeus.shopping.flightDates.get({ | ||
origin : 'NYC', | ||
destination : 'MAD' | ||
origin : 'MAD', | ||
destination : 'MUC' | ||
}) | ||
@@ -279,2 +279,17 @@ | ||
amadeus.shopping.hotelOffer('XXX').get() | ||
// Points of Interest | ||
// What are the popular places in Barcelona (based a geo location and a radius) | ||
amadeus.referenceData.locations.pointsOfInterest.get({ | ||
latitude : 41.397158, | ||
longitude : 2.160873 | ||
}) | ||
// What are the popular places in Barcelona? (based on a square) | ||
amadeus.referenceData.locations.pointsOfInterest.bySquare.get({ | ||
north: 41.397158, | ||
west: 2.160873, | ||
south: 41.394582, | ||
east: 2.177181 | ||
}) | ||
``` | ||
@@ -281,0 +296,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259066
42
2854
314