Error Authorization Required

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);

1 Like

Are you still experiencing this problem? I don’t see any configuration issues with your account and I’ve verified that you should be able to make requests.

Hello, yes I am still receiving the same response “[faultstring] => Authorization Required
[faultcode] => HTTP”

Can you have a look into it?

Thanks!