Sabre API - 圭亚那国家代码和机场代码无效

Sabre API - Guyana Country Code & Airport Code not working

晚上好,

我一直在探索 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 return 会产生结果。

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

非常感谢

旁注:我愿意悬赏 100 给任何能帮助我的人。

如果您对某些 API 使用 Sandbox/Test 环境,那么在支持搜索的市场和城市对的数量上,这比实际生产环境更加有限。

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

使用 Bargain Finder Max,如果需要,您可以从 Dev Environment 进行测试。