Hello,
We are getting “Authorization Required” error when trying to connect to your API via SoapClient. We are using the correct API key as password generated at https://flightaware.com/commercial/flightxml/key . Following is the request:
$options = array(
‘trace’ => true,
‘exceptions’ => 0,
‘login’ => ‘vipcars1’,
‘password’ => ‘xxxxxxxxxxxxxxxxx’,
);
$client = new SoapClient(‘http://flightxml.flightaware.com/soap/FlightXML2/wsdl’, $options);
$params = array(“startDate” => strtotime(‘2017-11-27 00:00:01’), “endDate” => strtotime(‘2017-11-27 23:59:59’), “airport” => “LHR”, “howMany” => “5”, “offset” => 0 );
$result = $client->Metar($params);