title: sky scanner api, create booking request
body: <p>I'm trying to use the skyscanner api</p>
  
  <p><a href="http://business.skyscanner.net/portal/en-GB/Documentation/FlightsLivePricingDetails" rel="nofollow">http://business.skyscanner.net/portal/en-GB/Documentation/FlightsLivePricingDetails</a></p>
  
  <p>get booking details section  </p>
  
  <p>I'm trying to create the request for booking so I can then poll it,
  The data vars I am trying to put are correct, but I just get returned a server errror so I suspect my curl request is flawed</p>
  
  <pre><code>$apiKey ='keygoeshere';
  $Session = $_GET["session"];
  $apiSessionUrl ='http://partners.api.skyscanner.net/apiservices/pricing/v1.0/'.$Session.'/booking';
  
  $OutboundLegId = $_GET['OutboundLegId'];
  $InboundLegId = $_GET['InboundLegId'];
  $data = array('apiKey'=&gt;$apiKey,'OutboundLegId' =&gt; $_GET['OutboundLegId'],'InboundLegId' =&gt; $InboundLegId);
  $dataVars = http_build_query($data);
  
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_HEADER, 1);
  curl_setopt($ch, CURLOPT_URL, $apiSessionUrl );
  curl_setopt( $ch, CURLOPT_POSTFIELDS, $dataVars);
  $response = curl_exec($ch);
  curl_close($ch);
  var_dump($response);
  </code></pre>
  
  <p>Any Help much appreciated.</p>