https://github.com/humbertodias/ionic-amadeus-api-demo
Demo Ionic For Amadeus API
https://github.com/humbertodias/ionic-amadeus-api-demo
amadeus-api
Last synced: 9 months ago
JSON representation
Demo Ionic For Amadeus API
- Host: GitHub
- URL: https://github.com/humbertodias/ionic-amadeus-api-demo
- Owner: humbertodias
- Created: 2017-01-11T19:23:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T14:17:02.000Z (over 8 years ago)
- Last Synced: 2025-10-04T04:00:08.156Z (9 months ago)
- Topics: amadeus-api
- Language: JavaScript
- Homepage:
- Size: 33.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo Amadeus API
Demo Ionic For Amadeus API
## Demo
Clone
```
git clone https://github.com/humbertodias/java-amadeus-api-demo.git
```
Enter
```
cd java-amadeus-api-demo
```
Start
```
ionic serve
```
On Browser
```
http://localhost:8100/
```
Home

Form Flight

### Flight Inspiration Search
```
APIKEY="YOUR_API_KEY"
DEPARTURE_DATE=$(date "+%Y-%m-%d")
ORIGIN="NYC"
DESTINATION="BOB"
curl -k -X GET "https://api.sandbox.amadeus.com/v1.2/flights/inspiration-search?apikey=$APIKEY&origin=$ORIGIN&destination=$DESTINATION&departure_date=$DEPARTURE_DATE"
```
### output
```
{
"origin" : "NYC",
"currency" : "USD",
"results" : [ {
"destination" : "BOB",
"departure_date" : "2018-02-28",
"return_date" : "2018-03-14",
"price" : "2203.80",
"airline" : "QF"
} ]
}
```
## References
[https://sandbox.amadeus.com/api-catalog](https://sandbox.amadeus.com/api-catalog)
[https://ionicframework.com/docs/v2/components/](https://ionicframework.com/docs/v2/components/)