Demo Ionic For Amadeus API
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
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"
{
"origin" : "NYC",
"currency" : "USD",
"results" : [ {
"destination" : "BOB",
"departure_date" : "2018-02-28",
"return_date" : "2018-03-14",
"price" : "2203.80",
"airline" : "QF"
} ]
}