对于个人项目,我正在尝试通过 RapidAPI 在 GO 中使用 Sky Scanner API。这是我用来执行 API 请求的 URL:
问题是,我只收到以下回复:
{"Quotes":[{"QuoteId":1,"MinPrice":403.0,"Direct":true,"OutboundLeg":{"CarrierIds":[851],"OriginId":81727,"DestinationId":60987,"DepartureDate":"2019-12-01T00:00:00"},"QuoteDateTime":"2019-11-29T14:24:00"}],"Places":[{"PlaceId":60987,"IataCode":"JFK","Name":"New York John F. Kennedy","Type":"Station","SkyscannerCode":"JFK","CityName":"New York","CityId":"NYCA","CountryName":"United States"},{"PlaceId":81727,"IataCode":"SFO","Name":"San Francisco International","Type":"Station","SkyscannerCode":"SFO","CityName":"San Francisco","CityId":"SFOA","CountryName":"United States"}],"Carriers":[{"CarrierId":851,"Name":"Alaska Airlines"},{"CarrierId":870,"Name":"jetBlue"},{"CarrierId":1065,"Name":"Frontier Airlines"},{"CarrierId":1721,"Name":"Sun Country Airlines"}],"Currencies":[{"Code":"GBP","Symbol":"£","ThousandsSeparator":",","DecimalSeparator":".","SymbolOnLeft":true,"SpaceBetweenAmountAndSymbol":false,"RoundingCoefficient":0,"DecimalDigits":2}]}
据我所知,这不包含回程航班。
我想知道是否有人有使用此的经验/知道我哪里出错了。
谢谢!