SABER API使用v1.8.6但不适用于v3.0.0

时间:2017-02-03 13:20:46

标签: sabre

我遇到了 saber api 讨价还价最大查找器的问题。

请检查我在请求代码下面使用的内容:



private function getRequest($origin, $destination, $departureDate) {
        $request = '{
            "OTA_AirLowFareSearchRQ": {
		"OriginDestinationInformation": [
			{
                            "DepartureDateTime": "'.$departureDate.'T00:00:00",
                            "DestinationLocation": {
				"LocationCode": "'.$destination.
                            '"},
                            "OriginLocation": {
                                "LocationCode": "'.$origin.
                            '"},
                            "RPH":"1"
			}
		],
		"POS": {
                    "Source": [
                        {
                            "RequestorID": {
                                "CompanyName": {
                                    "Code": "TN"
				},
				"ID": "REQ.ID",
				"Type": "0.AAA.X"
                            }
			}
                    ]
		},
		"TPA_Extensions": {
                    "IntelliSellTransaction": {
                        "RequestType": {
                            "Name": "50ITINS"
			}
                    }
		},
		"TravelerInfoSummary": {
                    "AirTravelerAvail": [
                        {
                            "PassengerTypeQuantity": [
                                {
                                    "Code": "ADT",
                                    "Quantity": 1
				}
                            ]
			}
                    ]
		}
            }

        }';
        return $request;
    }




当我使用上述请求代码它正常版本 1.8.6 api但无法正常工作版本 3.0.0

请帮助我。

0 个答案:

没有答案