获得有效令牌后...
此查询不适用于新的 DEV API。
curl -k https://test.api.amadeus.com/v1/shopping/flight-offers?origin=RDU&destination=MKE&departureDate=2019-08-02&adults=2&children=1&includeAirlines=F9&nonStop=true&max=50
我得到:
{
"errors": [
{
"status": 404,
"code": 1797,
"title": "NOT FOUND",
"detail": "No itinerary found for requested segment 1",
"source": {
"parameter": "origin/destination/date(s) combination"
}
}
]
}
如果我删除 nonStop 并包括航空公司,则查询会运行 nonstop 结果。