This is my situation: I have a account (userid/password) to communicate with an airline central reservation system through their API. The API provide methods to connect, disconnect, sign in, signout, sendcommand and getdatareturn.
这是我依次获得通缉数据的步骤。
- Connect to host
- sign in to system
- send a command to get a list of passergers of a flight at a specified date from a city to another city (LD command with some parameter like flight no, flight date, pair of city for original and destination), but in this step, the host only return a part of the full list (for example, it return only 20 passengers and end of this list is a # character to signal that there are more) if I want a full list, I must send another command (MD command) to move down and so on to the end of list (with the signal by the END string) .The passenger list content passenger name, class and a PRN code, base on these PNR code, I must send another command to get details passenger information like fullname, itinerary, contact information ... then process it (this consume some time to do)(and in this details, I can send various command to get more information...)
- sign out of system
- disconnect from host
我能否将多面或平行的技术用于第3号,从服务器获取数据?