如何使用 amadeus-java SDK 测试定价和预订航班?
How do I use the amadeus-java SDK to test pricing and booking flights?
我了解amadeus-java SDK offers methods that simplify GET and POST calls to the Amadeus Self-Service API endpoint Flight Offers Search。
有没有办法在 SDK 中对 Flight Offers Price and Flight Create Orders 进行 POST 调用?
如果 SDK 没有这方面的方法,我将如何检索访问令牌 I fetched via SDK 以显式进行这些调用?
提前致谢!
航班优惠价格和航班创建订单即将集成到 JavaSDK 中(PR 已打开,还有一些工作要做,您将能够使用它们)。
另一种解决方案是直接从我们的客户端使用方法 post
和 get
,如下例所示(您可以找到 [=19 的 README description =] SDK):
You can make any arbitrary API call as well directly with the .get
method. Keep in mind, this returns a raw Resource
Response response = amadeus.get("/v2/reference-data/urls/checkin-links", Params.with("airlineCode", "BA"));
response.getResult();
我了解amadeus-java SDK offers methods that simplify GET and POST calls to the Amadeus Self-Service API endpoint Flight Offers Search。
有没有办法在 SDK 中对 Flight Offers Price and Flight Create Orders 进行 POST 调用?
如果 SDK 没有这方面的方法,我将如何检索访问令牌 I fetched via SDK 以显式进行这些调用?
提前致谢!
航班优惠价格和航班创建订单即将集成到 JavaSDK 中(PR 已打开,还有一些工作要做,您将能够使用它们)。
另一种解决方案是直接从我们的客户端使用方法 post
和 get
,如下例所示(您可以找到 [=19 的 README description =] SDK):
You can make any arbitrary API call as well directly with the .get method. Keep in mind, this returns a raw Resource
Response response = amadeus.get("/v2/reference-data/urls/checkin-links", Params.with("airlineCode", "BA")); response.getResult();