Amadeus API-测试模式下“ Flight Inspiration Search” API出现问题

问题描述

我正在尝试使“飞行灵感搜索” API工作正常(https://developers.amadeus.com/self-service/category/air/api-doc/flight-inspiration-search/api-reference),并且收到以下错误消息:

{
    "errors":[{
        "status":500,"code":141,"title":"SYstem ERROR HAS OCCURRED","detail":"Featured Results option is mandatory"
    }]
}

我正在测试模式下使用API​​,并且正在传递必需的参数(还使用Github上指定的数据:https://github.com/amadeus4dev/data-collection/blob/master/data/flightsearch.md

只需确认一下,这就是我要通过的内容

$data = array(
    'origin' => 'LON','departureDate' => '2020-10-01','oneWay' => "false",'duration' => "3",'nonStop' => "false",'maxPrice' => "300",'viewBy' => 'COUNTRY'
);

请注意:我必须将布尔值放在引号中,因为它在传递为布尔值时显示错误

我要去哪里错了?预先非常感谢。

编辑:这是我正在使用的API端点 https://test.api.amadeus.com/v1/shopping/flight-destinations

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)