Skip to content

Commit 21a47cc

Browse files
committed
add src and dependancies
0 parents  commit 21a47cc

5 files changed

Lines changed: 195 additions & 0 deletions

File tree

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2017 Amadeus IT Group SA
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
7+
persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
10+
Software.
11+
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
14+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
15+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Get started with the Amadeus Node SDK
2+
3+
With this repository you can make your first API call using the [Amadeus Node SDK](https://github.com/amadeus4dev/amadeus-node).
4+
5+
### Prerequisites
6+
7+
- Node [LTS versions](https://github.com/nodejs/release#release-schedule)
8+
- An [Amadeus for Developers](https://developers.amadeus.com) account
9+
10+
11+
### How to run the project
12+
13+
Clone the repository.
14+
15+
```sh
16+
git clone https://github.com/amadeus4dev/amadeus-get-started-node.git
17+
cd amadeus-get-started-node
18+
```
19+
20+
Next install the dependencies.
21+
22+
```sh
23+
npm install
24+
```
25+
26+
For authentication add your API key/secret to your environmental variables.
27+
28+
```sh
29+
export AMADEUS_CLIENT_ID=YOUR_API_KEY
30+
export AMADEUS_CLIENT_SECRET=YOUR_API_SECRET
31+
```
32+
33+
### License
34+
35+
This library is released under the [MIT License](LICENSE).
36+
37+
### Help
38+
39+
You can find us on [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) or join our developer community on
40+
[Discord](https://discord.gg/cVrFBqx).

app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var Amadeus = require('amadeus');
2+
3+
var amadeus = new Amadeus();
4+
5+
amadeus.referenceData.urls.checkinLinks.get({ airlineCode: 'BA' }).then(function (response) {
6+
console.log(response.data);
7+
}).catch(function (responseError) {
8+
console.log(responseError.code);
9+
});

package-lock.json

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "amadeus-node-getting-started",
3+
"version": "1.0.0",
4+
"description": "Get started with Node SDK",
5+
"main": "app.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "Amadeus for Developers",
10+
"license": "MIT",
11+
"dependencies": {
12+
"amadeus": "^8.0.0"
13+
}
14+
}

0 commit comments

Comments
 (0)