0

晚上好,

我一直在探索 API,发现不支持往返圭亚那的航班。我尝试过使用 instaflightsearch、航班票价、城市对、领先价格日历等。

每次我尝试输入圭亚那国家代码 (GY) 或我们主要国际机场 (GEO) 的机场代码时,都会收到类似于以下内容的错误:

Warning: file_get_contents(https://api.test.sabre.com/v2/shop/flights/fares?origin=GEO&destination=JFK&departuredate=2015-12-30&lengthofstay=3,4,5,6,7): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in APIHandler->get() (line 132 of C:\xampp\htdocs\drupal7\sites\all\modules\custom\sabre\classes\APIHandler.php).
Warning: file_get_contents(https://api.test.sabre.com/v1/lists/supported/shop/flights/origins-destinations?origincountry=GY): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in APIHandler->get() (line 132 of C:\xampp\htdocs\drupal7\sites\all\modules\custom\sabre\classes\APIHandler.php).

请注意,如果我使用 JFK、LAX、LAS 等其他机场代码,API 会返回结果。

我不确定如何进行。我确定我缺少一些东西。请指出我正确的方向。

非常感谢你

旁注:我愿意为任何可以帮助我的人提供 100 赏金。

4

1 回答 1

2

如果您为某些 API 使用沙盒/测试环境,那么在搜索支持的市场和城市对数量上,这比真实的生产环境要有限得多。

在此处阅读更多信息: https ://developer.sabre.com/docs/read/rest_basics/Point_of_sale

使用 Bargain Finder Max,如果需要,您可以从开发环境中进行测试。

于 2015-10-12T17:51:03.933 回答