{"id":757,"date":"2022-03-18T14:49:55","date_gmt":"2022-03-18T05:49:55","guid":{"rendered":"https:\/\/uapisupport.travelport.co.kr\/?page_id=757"},"modified":"2022-04-19T10:16:42","modified_gmt":"2022-04-19T01:16:42","slug":"php-%ec%83%98%ed%94%8c","status":"publish","type":"page","link":"https:\/\/uapisupport.travelport.co.kr\/?page_id=757","title":{"rendered":"PHP Soap Client \uc0d8\ud50c"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Remark :  uAPI Soap Call and parsing sample PHP<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:php decode:true \" title=\"PHP\" >&lt;?php \n\/* \n* uAPI sample communication in php language \n* This example requires the cURL library to be installed and working. \n* Please note, in the sample code below, the variable $CREDENTIALS is created by binding your username and password together with a colon e.g. \n* $auth = base64_encode(\"Universal API\/API1234567:mypassword\"); \n* The variable $TARGETBRANCH should be set to the TargetBranch provided by Travelport. \n* (C) 2015 Travelport, Inc. \n* This code is for illustration purposes only. \n*\/\n$TARGETBRANCH = 'Put your TargetBranch\/WAB received in Welcome leter here';\n$CREDENTIALS = 'Put your Username received in Welcome letter here:Put your password in Welcome letter here'; \n$Provider = '1G';\n$message = &lt;&lt;&lt;EOM\n&lt;soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" \n    \t\t\t\t\t\t  xmlns:air=\"http:\/\/www.travelport.com\/schema\/air_v50_0\" \n    \t\t\t\t\t\t  xmlns:com=\"http:\/\/www.travelport.com\/schema\/common_v50_0\"&gt;\n  &lt;soapenv:Body&gt;\n    &lt;air:LowFareSearchReq TraceId=\"2021122918322322\"  TargetBranch=\"P*******\" SolutionResult=\"true\" AuthorizedBy=\"user\" &gt;\n      &lt;com:BillingPointOfSaleInfo OriginApplication=\"UAPI\"\/&gt;\n      &lt;air:SearchAirLeg&gt;\n        &lt;air:SearchOrigin&gt;\n          &lt;com:CityOrAirport  Code=\"DEL\"\/&gt;\n        &lt;\/air:SearchOrigin&gt;\n        &lt;air:SearchDestination&gt;\n          &lt;com:CityOrAirport  Code=\"BOM\"\/&gt;\n        &lt;\/air:SearchDestination&gt;\n        &lt;air:SearchDepTime PreferredTime=\"2022-05-12\"&gt; &lt;\/air:SearchDepTime&gt;\n      &lt;\/air:SearchAirLeg&gt;\n  &lt;air:AirSearchModifiers&gt;\n    &lt;air:PreferredProviders&gt;\n      &lt;com:Provider Code=\"1G\" \/&gt;\n    &lt;\/air:PreferredProviders&gt;\n    &lt;air:PermittedCarriers&gt;\n      &lt;com:Carrier Code=\"AI\" \/&gt;\n    &lt;\/air:PermittedCarriers&gt;\n    &lt;air:PreferredCabins&gt;\n      &lt;com:CabinClass Type=\"Economy\" \/&gt;\n    &lt;\/air:PreferredCabins&gt;\n    &lt;air:FlightType  NonStopDirects=\"true\" StopDirects=\"true\" SingleOnlineCon=\"true\" DoubleOnlineCon=\"false\" TripleOnlineCon=\"false\" SingleInterlineCon=\"false\" DoubleInterlineCon=\"false\" TripleInterlineCon=\"false\" \/&gt;\n  &lt;\/air:AirSearchModifiers&gt;\n      &lt;com:SearchPassenger Code=\"ADT\"\/&gt;\n      &lt;air:AirPricingModifiers ETicketability=\"Required\" FaresIndicator=\"AllFares\"\/&gt;\n    &lt;\/air:LowFareSearchReq&gt;\n  &lt;\/soapenv:Body&gt;\n&lt;\/soapenv:Envelope&gt;\nEOM;\n\n$file = \"001-\".$Provider.\"_AirAvailabilityReq.xml\"; \/\/ file name to save the request xml for test only(if you want to save the request\/response)\nprettyPrint($message,$file);\/\/call function to pretty print xml\n\n$auth = base64_encode(\"$CREDENTIALS\"); \n$soap_do = curl_init(\"https:\/\/apac.universal-api.pp.travelport.com\/B2BGateway\/connect\/uAPI\/AirService\");\n$header = array(\n\"Content-Type: text\/xml;charset=UTF-8\", \n\"Accept: gzip,deflate\", \n\"Cache-Control: no-cache\", \n\"Pragma: no-cache\", \n\"SOAPAction: \\\"\\\"\",\n\"Authorization: Basic $auth\", \n\"Content-length: \".strlen($message),\n); \n\/\/curl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 30); \n\/\/curl_setopt($soap_do, CURLOPT_TIMEOUT, 30); \ncurl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false); \ncurl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false); \ncurl_setopt($soap_do, CURLOPT_POST, true ); \ncurl_setopt($soap_do, CURLOPT_POSTFIELDS, $message); \ncurl_setopt($soap_do, CURLOPT_HTTPHEADER, $header); \ncurl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true);\n$return = curl_exec($soap_do);\ncurl_close($soap_do);\n\n$file = \"001-\".$Provider.\"_AirAvailabilityRsp.xml\"; \/\/ file name to save the response xml for test only(if you want to save the request\/response)\n$content = prettyPrint($return,$file);\nparseOutput($content);\n\nheader('Content-type: text\/xml'); \/\/xml type out\necho $return;\n\n\/\/outputWriter($file, $return);\n\/\/print_r(curl_getinfo($soap_do));\n\n\/\/Pretty print XML\nfunction prettyPrint($result,$file){\n    $dom = new DOMDocument;\n    $dom-&gt;preserveWhiteSpace = false;\n    $dom-&gt;loadXML($result);\n    $dom-&gt;formatOutput = true;      \n    \/\/call function to write request\/response in file   \n    outputWriter($file,$dom-&gt;saveXML());    \n    return $dom-&gt;saveXML();\n}\n\n\/\/function to write output in a file\nfunction outputWriter($file,$content){  \n    file_put_contents($file, $content); \/\/ Write request\/response and save them in the File\n}\n\n\nfunction parseOutput($content){ \/\/parse the Search response to get values to use in detail request\n    $AirAvailabilitySearchRsp = $content; \/\/use this if response is not saved anywhere else use above variable\n    \/\/echo $AirAvailabilitySearchRsp;\n    $xml = simplexml_load_String(\"$AirAvailabilitySearchRsp\", null, null, 'SOAP', true);    \n\n    if($xml)\n\t{\n        \/\/echo \"Processing! Please wait!\";\n\t}\n    else{\n        trigger_error(\"Encoding Error!\", E_USER_ERROR);\n    }\n\n    $Results = $xml-&gt;children('SOAP',true);\n    foreach($Results-&gt;children('SOAP',true) as $fault){\n        if(strcmp($fault-&gt;getName(),'Fault') == 0){\n            trigger_error(\"Error occurred request\/response processing!\", E_USER_ERROR);\n        }\n    }\n\n    $count = 0;\n    $fileName = \"flights.txt\";\n    if(file_exists($fileName)){\n        file_put_contents($fileName, \"\");\n    }\n    foreach($Results-&gt;children('air',true) as $nodes){\n        foreach($nodes-&gt;children('air',true) as $hsr){\n            if(strcmp($hsr-&gt;getName(),'AirSegmentList') == 0){\n                foreach($hsr-&gt;children('air',true) as $hp){\n                    if(strcmp($hp-&gt;getName(),'AirSegment') == 0){\n                        $count = $count + 1;\n                        file_put_contents($fileName,\"\\r\\n\".\"Air Segment \".$count.\"\\r\\n\".\"\\r\\n\", FILE_APPEND);\n                        foreach($hp-&gt;attributes() as $a =&gt; $b   ){\n                                $GLOBALS[$a] = \"$b\";\n                                \/\/echo \"$a\".\" : \".\"$b\";\n                                file_put_contents($fileName,$a.\" : \".$b.\"\\r\\n\", FILE_APPEND);\n                        }                                               \n                    }                   \n                }\n            }\n            \/\/break;\n        }\n    }\n    $Token = 'Token';\n    $TokenKey = 'TokenKey';\n    $fileName = \"tokens.txt\";\n    if(file_exists($fileName)){\n        file_put_contents($fileName, \"\");\n    }\n    foreach($Results-&gt;children('air',true) as $nodes){\n        foreach($nodes-&gt;children('air',true) as $hsr){\n            if(strcmp($hsr-&gt;getName(),'HostTokenList') == 0){           \n                foreach($hsr-&gt;children('common_v50_0', true) as $ht){\n                    if(strcmp($ht-&gt;getName(), 'HostToken') == 0){\n                        $GLOBALS[$Token] = $ht[0];\n                        foreach($ht-&gt;attributes() as $a =&gt; $b){\n                            if(strcmp($a, 'Key') == 0){\n                                file_put_contents($fileName,$TokenKey.\":\".$b.\"\\r\\n\", FILE_APPEND);\n                            }\n                        }                       \n                        file_put_contents($fileName,$Token.\":\".$ht[0].\"\\r\\n\", FILE_APPEND);\n                    }\n                }\n            }\n        }\n    }\n\n    \/\/echo \"\\r\\n\".\"Processing Done. Please check results in files.\";\n\n}\n\n?&gt;\n<\/pre><\/div>\n\n\n\n<p>\uacb0\uacfc<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"633\" src=\"https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP.png\" alt=\"\" class=\"wp-image-755\" srcset=\"https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP.png 923w, https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP-300x206.png 300w, https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP-768x527.png 768w\" sizes=\"auto, (max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"158\" src=\"https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP_files.png\" alt=\"\" class=\"wp-image-756\" srcset=\"https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP_files.png 842w, https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP_files-300x56.png 300w, https:\/\/uapisupport.travelport.co.kr\/wp-content\/uploads\/2022\/03\/Soap_PHP_files-768x144.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"flights.txt\">Air Segment 1\n\nKey : pRvyY+AqWDKAOnOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 887\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T07:00:00.000+05:30\nArrivalTime : 2022-05-12T09:05:00.000+05:30\nFlightTime : 125\nDistance : 708\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 2\n\nKey : pRvyY+AqWDKAlnOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 665\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T08:00:00.000+05:30\nArrivalTime : 2022-05-12T10:10:00.000+05:30\nFlightTime : 130\nDistance : 708\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 3\n\nKey : pRvyY+AqWDKAvnOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 805\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T20:00:00.000+05:30\nArrivalTime : 2022-05-12T22:10:00.000+05:30\nFlightTime : 130\nDistance : 708\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 4\n\nKey : pRvyY+AqWDKA5nOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 678\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T09:00:00.000+05:30\nArrivalTime : 2022-05-12T11:15:00.000+05:30\nFlightTime : 135\nDistance : 708\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 5\n\nKey : pRvyY+AqWDKADoOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 624\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T19:00:00.000+05:30\nArrivalTime : 2022-05-12T21:15:00.000+05:30\nFlightTime : 135\nDistance : 708\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 6\n\nKey : pRvyY+AqWDKANoOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 636\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T15:05:00.000+05:30\nArrivalTime : 2022-05-12T18:10:00.000+05:30\nFlightTime : 185\nDistance : 708\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nNumberOfStops : 1\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 7\n\nKey : pRvyY+AqWDKAfnOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 441\nOrigin : DEL\nDestination : BOM\nDepartureTime : 2022-05-12T17:50:00.000+05:30\nArrivalTime : 2022-05-12T21:35:00.000+05:30\nFlightTime : 225\nDistance : 708\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nNumberOfStops : 1\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 8\n\nKey : pRvyY+AqWDKAZoOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 491\nOrigin : DEL\nDestination : JAI\nDepartureTime : 2022-05-12T12:00:00.000+05:30\nArrivalTime : 2022-05-12T12:55:00.000+05:30\nFlightTime : 55\nDistance : 145\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 9\n\nKey : pRvyY+AqWDKAboOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 612\nOrigin : JAI\nDestination : BOM\nDepartureTime : 2022-05-12T14:00:00.000+05:30\nArrivalTime : 2022-05-12T15:50:00.000+05:30\nFlightTime : 110\nDistance : 567\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 10\n\nKey : pRvyY+AqWDKA5oOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 861\nOrigin : DEL\nDestination : AMD\nDepartureTime : 2022-05-12T16:45:00.000+05:30\nArrivalTime : 2022-05-12T18:10:00.000+05:30\nFlightTime : 85\nDistance : 472\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 11\n\nKey : pRvyY+AqWDKA7oOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 638\nOrigin : AMD\nDestination : BOM\nDepartureTime : 2022-05-12T21:00:00.000+05:30\nArrivalTime : 2022-05-12T22:15:00.000+05:30\nFlightTime : 75\nDistance : 276\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 12\n\nKey : pRvyY+AqWDKAZpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 531\nOrigin : DEL\nDestination : AMD\nDepartureTime : 2022-05-12T19:00:00.000+05:30\nArrivalTime : 2022-05-12T21:30:00.000+05:30\nFlightTime : 150\nDistance : 472\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 13\n\nKey : pRvyY+AqWDKAcpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 638\nOrigin : AMD\nDestination : BOM\nDepartureTime : 2022-05-13T21:00:00.000+05:30\nArrivalTime : 2022-05-13T22:15:00.000+05:30\nFlightTime : 75\nDistance : 276\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 14\n\nKey : pRvyY+AqWDKAjpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 9843\nOrigin : DEL\nDestination : JAI\nDepartureTime : 2022-05-12T07:10:00.000+05:30\nArrivalTime : 2022-05-12T08:10:00.000+05:30\nFlightTime : 60\nDistance : 145\nETicketability : Yes\nEquipment : ATR\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 15\n\nKey : pRvyY+AqWDKAvoOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 9643\nOrigin : DEL\nDestination : JAI\nDepartureTime : 2022-05-12T19:40:00.000+05:30\nArrivalTime : 2022-05-12T20:40:00.000+05:30\nFlightTime : 60\nDistance : 145\nETicketability : Yes\nEquipment : ATR\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 16\n\nKey : pRvyY+AqWDKAyoOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 612\nOrigin : JAI\nDestination : BOM\nDepartureTime : 2022-05-13T14:00:00.000+05:30\nArrivalTime : 2022-05-13T15:50:00.000+05:30\nFlightTime : 110\nDistance : 567\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 17\n\nKey : pRvyY+AqWDKAvpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 839\nOrigin : DEL\nDestination : HYD\nDepartureTime : 2022-05-12T21:30:00.000+05:30\nArrivalTime : 2022-05-12T23:45:00.000+05:30\nFlightTime : 135\nDistance : 781\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 18\n\nKey : pRvyY+AqWDKAxpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 620\nOrigin : HYD\nDestination : BOM\nDepartureTime : 2022-05-13T05:30:00.000+05:30\nArrivalTime : 2022-05-13T07:10:00.000+05:30\nFlightTime : 100\nDistance : 386\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 19\n\nKey : pRvyY+AqWDKABqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 439\nOrigin : DEL\nDestination : MAA\nDepartureTime : 2022-05-12T05:55:00.000+05:30\nArrivalTime : 2022-05-12T08:55:00.000+05:30\nFlightTime : 180\nDistance : 1095\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 20\n\nKey : pRvyY+AqWDKADqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 672\nOrigin : MAA\nDestination : BOM\nDepartureTime : 2022-05-12T15:20:00.000+05:30\nArrivalTime : 2022-05-12T17:10:00.000+05:30\nFlightTime : 110\nDistance : 644\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 21\n\nKey : pRvyY+AqWDKATqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 471\nOrigin : DEL\nDestination : UDR\nDepartureTime : 2022-05-12T13:20:00.000+05:30\nArrivalTime : 2022-05-12T14:35:00.000+05:30\nFlightTime : 75\nDistance : 338\nETicketability : Yes\nEquipment : 32A\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 22\n\nKey : pRvyY+AqWDKAVqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 644\nOrigin : UDR\nDestination : BOM\nDepartureTime : 2022-05-12T16:20:00.000+05:30\nArrivalTime : 2022-05-12T17:55:00.000+05:30\nFlightTime : 95\nDistance : 388\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 23\n\nKey : pRvyY+AqWDKAlqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 641\nOrigin : DEL\nDestination : NAG\nDepartureTime : 2022-05-12T23:30:00.000+05:30\nArrivalTime : 2022-05-13T01:20:00.000+05:30\nFlightTime : 110\nDistance : 531\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 24\n\nKey : pRvyY+AqWDKAnqOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 628\nOrigin : NAG\nDestination : BOM\nDepartureTime : 2022-05-13T07:50:00.000+05:30\nArrivalTime : 2022-05-13T09:20:00.000+05:30\nFlightTime : 90\nDistance : 425\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 25\n\nKey : pRvyY+AqWDKATpOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 9887\nOrigin : DEL\nDestination : AMD\nDepartureTime : 2022-05-12T05:35:00.000+05:30\nArrivalTime : 2022-05-12T07:50:00.000+05:30\nFlightTime : 135\nDistance : 472\nETicketability : Yes\nEquipment : ATR\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 26\n\nKey : pRvyY+AqWDKA4qOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 406\nOrigin : DEL\nDestination : VNS\nDepartureTime : 2022-05-12T10:15:00.000+05:30\nArrivalTime : 2022-05-12T11:40:00.000+05:30\nFlightTime : 85\nDistance : 415\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 27\n\nKey : pRvyY+AqWDKA6qOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 696\nOrigin : VNS\nDestination : BOM\nDepartureTime : 2022-05-12T13:25:00.000+05:30\nArrivalTime : 2022-05-12T15:40:00.000+05:30\nFlightTime : 135\nDistance : 776\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 28\n\nKey : pRvyY+AqWDKAKrOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 767\nOrigin : DEL\nDestination : CCU\nDepartureTime : 2022-05-12T12:10:00.000+05:30\nArrivalTime : 2022-05-12T14:30:00.000+05:30\nFlightTime : 140\nDistance : 816\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 29\n\nKey : pRvyY+AqWDKAMrOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 773\nOrigin : CCU\nDestination : BOM\nDepartureTime : 2022-05-12T16:55:00.000+05:30\nArrivalTime : 2022-05-12T20:15:00.000+05:30\nFlightTime : 200\nDistance : 1035\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 30\n\nKey : pRvyY+AqWDKAfrOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 401\nOrigin : DEL\nDestination : CCU\nDepartureTime : 2022-05-12T06:50:00.000+05:30\nArrivalTime : 2022-05-12T09:00:00.000+05:30\nFlightTime : 130\nDistance : 816\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 31\n\nKey : pRvyY+AqWDKAnrOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 883\nOrigin : DEL\nDestination : GOI\nDepartureTime : 2022-05-12T22:00:00.000+05:30\nArrivalTime : 2022-05-13T00:40:00.000+05:30\nFlightTime : 160\nDistance : 928\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 32\n\nKey : pRvyY+AqWDKAprOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 9658\nOrigin : GOI\nDestination : BOM\nDepartureTime : 2022-05-13T20:55:00.000+05:30\nArrivalTime : 2022-05-13T22:35:00.000+05:30\nFlightTime : 100\nDistance : 257\nETicketability : Yes\nEquipment : ATR\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 33\n\nKey : pRvyY+AqWDKAFsOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 403\nOrigin : DEL\nDestination : RAJ\nDepartureTime : 2022-05-12T12:50:00.000+05:30\nArrivalTime : 2022-05-12T14:45:00.000+05:30\nFlightTime : 115\nDistance : 586\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 34\n\nKey : pRvyY+AqWDKAHsOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 656\nOrigin : RAJ\nDestination : BOM\nDepartureTime : 2022-05-12T18:05:00.000+05:30\nArrivalTime : 2022-05-12T19:15:00.000+05:30\nFlightTime : 70\nDistance : 261\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 35\n\nKey : pRvyY+AqWDKA9rOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 684\nOrigin : GOI\nDestination : BOM\nDepartureTime : 2022-05-13T06:50:00.000+05:30\nArrivalTime : 2022-05-13T08:05:00.000+05:30\nFlightTime : 75\nDistance : 257\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Cached status used. Polled avail exists\nOptionalServicesIndicator : false\nAvailabilitySource : P\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 36\n\nKey : pRvyY+AqWDKAYsOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 451\nOrigin : DEL\nDestination : VTZ\nDepartureTime : 2022-05-12T15:00:00.000+05:30\nArrivalTime : 2022-05-12T17:20:00.000+05:30\nFlightTime : 140\nDistance : 844\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 37\n\nKey : pRvyY+AqWDKAasOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 653\nOrigin : VTZ\nDestination : BOM\nDepartureTime : 2022-05-12T21:30:00.000+05:30\nArrivalTime : 2022-05-12T23:40:00.000+05:30\nFlightTime : 130\nDistance : 686\nETicketability : Yes\nEquipment : 319\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 38\n\nKey : pRvyY+AqWDKAqsOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 479\nOrigin : DEL\nDestination : ATQ\nDepartureTime : 2022-05-12T21:15:00.000+05:30\nArrivalTime : 2022-05-12T22:20:00.000+05:30\nFlightTime : 65\nDistance : 258\nETicketability : Yes\nEquipment : 321\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n\nAir Segment 39\n\nKey : pRvyY+AqWDKAssOMAAAAAA==\nGroup : 0\nCarrier : AI\nFlightNumber : 650\nOrigin : ATQ\nDestination : BOM\nDepartureTime : 2022-05-13T09:05:00.000+05:30\nArrivalTime : 2022-05-13T11:50:00.000+05:30\nFlightTime : 165\nDistance : 881\nETicketability : Yes\nEquipment : 32B\nChangeOfPlane : false\nParticipantLevel : Secure Sell\nLinkAvailability : true\nPolledAvailabilityOption : Polled avail used\nOptionalServicesIndicator : false\nAvailabilitySource : S\nAvailabilityDisplayType : Fare Shop\/Optimal Shop\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Remark : uAPI Soap Call and parsing sample PHP \uacb0\uacfc<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-757","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=757"}],"version-history":[{"count":6,"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/757\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/757\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/uapisupport.travelport.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}