Jump to content

PHP: working with arzoo api


Harun

Recommended Posts

I've tried all day looking for the official documentation for the Arzoo api but didn't find one.. all i can see from the net is code examples(like the one below) from people and following that isn't really helpful

<?php    $location_URL = "http://59.162.33.102/ArzooWS/services/DOMFlightAvailability";$action_URL ="http://com.arzoo.flight.avail";$client = new SoapClient('http://59.162.33.102/ArzooWS/services/DOMFlightAvailability?wsdl', array('soap_version' => SOAP_1_1,'location' => $location_URL,'uri'      => $action_URL,'style'    => SOAP_RPC,'use'      => SOAP_ENCODED,'trace'    => 1,));$request = array('Request'=>array('Origin' => 'BOM','Destination' => 'DEL','DepartDate' => '2013-09-05','ReturnDate' => '2013-09-06','AdultPax' => '1','ChildPax' => '0','InfantPax' => '0','Currency' => 'INR','Clientid' => '777xxxx','Clientpassword' => '*5AF72AA053B7823D8EBBFE696080C9AD6B3DF69A','Clienttype' => 'ArzooFWS1.0','Preferredclass' => 'E','mode' => 'ONE','PreferredAirline' => 'AI,G8,IC,6E,9W,S2,IT,9H,I7,SG'));try{    $result = $client->__call('getAvailability',$request);    $response= htmlentities($result);}catch(Exception $e){    echo "<h2>Exception Error!</h2>";    echo $e->getMessage();}var_dump($response);?>

i want to use the Arzoo api to look up hotel and air ticket prices..any references on the official documentation of Arzoo api or any relevant material would be helpful

 

Link to comment
https://forums.phpfreaks.com/topic/286368-php-working-with-arzoo-api/
Share on other sites

Have you went to the WSDL page with a SOAP browser to see the defined methods?  Unfortunately, SOAP is something you have to learn.  Not quite something most people will code for you.  Just go http://59.162.33.102/ArzooWS/services/DOMFlightAvailability%22 and click on the part you want to do.  It will tell you the fields and what you can request.

 

Again, there is a learning curve to SOAP, but there are tons of resources out there to help you learn it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.