mlpont
September 24, 2015, 4:24am
1
I’m trying to get FlightInfoEx for a blocked tail number, but the response I get is blocked.
$options = array(
'trace' => true,
'exceptions' => 0,
'login' => 'LOGIN',
'password' => 'API KEY',
);
$client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options);
$params = array(
"ident" => "TAILREMOVED",
"howMany" => 1,
"offset" => 0 );
$result = $client->FlightInfoEx($params);
This is the result I get:
SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /www/sss/faAPI.php [line:protected] => 16 [trace:private] => Array ( [0] => Array ( [function] => __call [class] => SoapClient [type] => → [args] => Array ( [0] => FlightInfoEx [1] => Array ( [0] => Array ( [ident] => TAILREMOVED [howMany] => 1 [offset] => 0 ) ) ) ) [1] => Array ( [file] => /www/sss/faAPI.php [line] => 16 [function] => FlightInfoEx [class] => SoapClient [type] => → [args] => Array ( [0] => Array ( [ident] => TAILREMOVED [howMany] => 1 [offset] => 0 ) ) ) ) [faultstring] => no data available [faultcode] => CLIENT [detail] => stdClass Object ( [errorInfo] => stdClass Object ( [errorCode] => NONE ) ) )
I’m assuming this is because the tail number is blocked. What do I need to do to further authenticate this request? Any direction would be appreciated.
Thanks!
cbw
September 24, 2015, 3:39pm
2
mlpont:
I’m trying to get FlightInfoEx for a blocked tail number, but the response I get is blocked.
$options = array(
'trace' => true,
'exceptions' => 0,
'login' => 'LOGIN',
'password' => 'API KEY',
);
$client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options);
$params = array(
"ident" => "TAILREMOVED",
"howMany" => 1,
"offset" => 0 );
$result = $client->FlightInfoEx($params);
This is the result I get:
SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /www/sss/faAPI.php [line:protected] => 16 [trace:private] => Array ( [0] => Array ( [function] => __call [class] => SoapClient [type] => → [args] => Array ( [0] => FlightInfoEx [1] => Array ( [0] => Array ( [ident] => TAILREMOVED [howMany] => 1 [offset] => 0 ) ) ) ) [1] => Array ( [file] => /www/sss/faAPI.php [line] => 16 [function] => FlightInfoEx [class] => SoapClient [type] => → [args] => Array ( [0] => Array ( [ident] => TAILREMOVED [howMany] => 1 [offset] => 0 ) ) ) ) [faultstring] => no data available [faultcode] => CLIENT [detail] => stdClass Object ( [errorInfo] => stdClass Object ( [errorCode] => NONE ) ) )
I’m assuming this is because the tail number is blocked. What do I need to do to further authenticate this request? Any direction would be appreciated.
Thanks!
You would need to subscribe to our FlightAware Global service to track or query blocked tail numbers. This service would need to be requested by the owner or operator of the aircraft and the account with the API would need to be on the Global account. Please feel free to contact us if you have any additional questions regarding the service.
mlpont
September 24, 2015, 5:58pm
3
Thanks for the quick reply. I do have a FlightAware Global account, I’m just not sure how to integrate those credentials into the API. I will email support for further information.
Thanks!
mduell
September 24, 2015, 7:35pm
4
You can add the account you’re using for FlightXML as an authorized user for your Global on flightaware.com/account/global/ or contact support and they can help you with it.