Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
585 views
in Technique[技术] by (71.8m points)

How do I delete a flight order using the Amadeus Java SDK?

The Amadeus Java SDK source code gives the example

FlightOrder order = amadeus.booking.flightOrder.("eJzTd9f3NjIJdzUGAAp%2fAiY=").delete();

But it seems that this always throws a ParserException because the API does not return a FlightOrder object but rather an empty response with code 204.

What would be a safe way to delete an order?

And is it a problem if I don't delete all the orders I create with the Test API? Will existing orders automatically be purged server-side after a certain time?

Thanks in advance!

edit: Might be related to this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...